Gitlab 2 Player Games

two-player-game/
├── index.html
├── style.css
├── game.js
├── network.js
├── assets/
│   ├── sprites/
│   └── sounds/
└── .gitlab-ci.yml

Why it’s unique: This isn't standard chess. When you capture a piece, you must correctly answer a YAML syntax question (e.g., "Correct this broken .gitlab-ci.yml block"). If you get it wrong, the capture is reversed. Audience: Hardcore DevOps engineers. If you aren't familiar with indentation, you will lose immediately.

# Clone the project template
git clone https://gitlab.com/example/gitlab-2p-games.git

For many teams, the "2 player game" is a way to solve the boredom or anxiety of code reviews. By treating the codebase as a shared artifact that two players must protect, the dynamic shifts from "critique" to "collaboration." gitlab 2 player games

GitLab's features facilitate this "game": two-player-game/ ├── index

npm run dev

Go to GitLab’s explore page and use:

import socket
class GameServer:
    def __init__(self, host='localhost', port=12345):
        self.host = host
        self.port = port
        self.server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        self.server.bind((self.host, self.port))
        self.server.listen()
def handle_client(self, conn, addr):
        print(f"New Connection: addr")
while True:
            try:
                message = conn.recv(1024).decode('utf-8')
                print(f"Received: message")
                response = input("Server: ")
                conn.send(response.encode('utf-8'))
            except:
                break
print(f"Connection Closed: addr")
        conn.close()
def start(self):
        print("Server Started. Waiting for connections...")
        while True:
            conn, addr = self.server.accept()
            self.handle_client(conn, addr)
if __name__ == "__main__":
    server = GameServer()
    server.start()