Onigiri Wars is a multiplayer, real-time, competitive land-claiming game built using a client-server architecture with raw socket communication. Players move across a shared 10x10 grid, claiming tiles and blocking opponents from crossing their paths. The goal is to have the most tiles by the end of the game.
YouTube Link: https://www.youtube.com/watch?v=evRVT6tB6cI
- Start the server – Any player can host the game.
- Join as a client – Other players connect remotely.
- Move with arrow keys to claim tiles.
- Claimed tiles act as walls, blocking other players.
- Use strategy to cut off opponents and expand your territory.
- Game ends when the timer runs out – the player with the most claimed tiles wins! 🥳
Players will land at this screen upon joining the game. To join the lobby, click any key on the keyboard.
The lobby contains instructions on how to play the game, keyboard controls, and a list of players in the lobby.
To ready up, click the "READY" button. The game will start once all palyers are ready.
The game board consists of a 10x10 grid. Claim the most tiles to win!
When the game ends, a recap popup will display the winning player and a scoreboard.
-
How the Game Works:
- The server keeps track of the game and makes sure all players are in sync with each other.
- Players send their movement commands to the server and receive updates in real time about other players' actions.
-
Claiming Tiles:
- The grid is made up of tiles that players can claim.
- Once a player claims a tile, it becomes locked and no other player can step on it.
- The server manages the flow of the game, ensuring that players' moves are handled in the right order.
-
Winning the Game:
- The game ends when the timer runs out or when all tiles have been claimed.
- The player who controls the most tiles at the end wins the game!
-
Clone the repository:
git clone https://github.com/jnn4/CMPT-371-FP
-
Start the server:
cd src/main/java/server java GameServer.java -
Start a client:
cd src/main/java/client java GameClient.java # run multiple instances of this command to simulate multiple players
-
Start playing!
- Bianca Dimaano
- Jaycie Say
- Jennifer Huang
- Quang Anh Pham



