dev
Full development environment - builds the project and runs 1 server plus 4 clients. Use when the user wants to test multiplayer, simulate 4-player co-op, or run the complete dev environment.
When & Why to Use This Skill
This Claude skill automates the setup of a comprehensive local development environment tailored for multiplayer game testing. It streamlines the workflow by building the project and orchestrating the simultaneous launch of one server and four client instances, enabling developers to simulate complex 4-player co-op scenarios and verify networked gameplay features with a single command.
Use Cases
- Multiplayer Synchronization Testing: Simulate a 4-player environment to ensure game state consistency and network stability across multiple concurrent clients.
- Automated Environment Orchestration: Replace manual process management by using a single command to build the project, start the server, and initialize multiple client windows with staggered delays.
- Networked Feature Debugging: Verify server-side logic, such as unique player color assignments and real-time interaction handling, within a controlled local sandbox.
| name | dev |
|---|---|
| description | Full development environment - builds the project and runs 1 server plus 4 clients. Use when the user wants to test multiplayer, simulate 4-player co-op, or run the complete dev environment. |
Development Environment
Builds the project and runs a full development environment with 1 server and 4 clients.
Instructions
- Run the dev command:
make dev
What This Does
- Builds the project (if needed)
- Starts 1 server instance on 0.0.0.0:1234
- Waits 1 second for server to initialize
- Starts 4 client instances with 1-second delays between each
- Waits for you to press Enter to stop all processes
Expected Behavior
You should see:
Starting Gambit development environment...
- 1 Server (0.0.0.0:1234)
- 4 Clients (connecting to 127.0.0.1:1234)
Press Ctrl+C to stop all processes...
Starting server...
Starting 4 clients...
Development environment running!
PIDs: 12345 12346 12347 12348 12349
Then 4 game windows will open, each with a different colored player (Red, Green, Blue, Yellow).
Stopping the Environment
- Press
Ctrl+Cto stop all processes and close all windows - All server and client processes will be terminated automatically
- All game windows will close cleanly
Notes
- This simulates a 4-player multiplayer game
- Each client gets a unique color assigned by the server
- Perfect for testing networked gameplay features
- The server and clients run in the background
- All processes are cleaned up when you press Enter