Snake game with an AI bot
| welcome page | game interface |
|:————————-:|:————————-:|
|
|
|
Levels in the snake game
( If no level is chosen, then no wall will be placed whatsoever (the Default level) )
Two-player mode
- Before the game started, players can use the game menu to choose the “Two-player mode” option to add another player;
- The original player, the host, controls the green snake with Up, Down, Right, Left-Key; the second player, the rival, controls the blue snake with W, S, A, D-Key;
- In the game, the two snakes can only collide with itself but not with each other.
Snake AI
- Before the game started, players are provided with a GUI menu as shown on the first page;
- On the menu, users can
- choose the game level;
- choose the number of apples that maintained during the game;
- choose the number of bombs that maintained during the game;
- choose the “Two-player mode” and “Battel with AI” options;
- set the snake speed;
- set the timer value;
- get started by clicking the start button (cancel by closing the menu window right away);
Nicer Snake graphics
- The graphics of both the host and rival snakes have been improved;
- The graphics of the apple has been improved;
- The graphics of the background (the grid) has been improved;
- The graphics of the game over screen has been improved in a way that user can see the winner or loser together with the higher score;
- The graphics of the game menu has been improved.
- Added Bombs and walls graphics;
- Added timer area;
Updated features of the snake game
Variable number of apples
- In the beginning, players are able to choose the number of apples, from 1 (default) to 5 (adjustable), that maintained during the game;
Variable number of bombs
- In the beginning, players are able to choose the number of bombs, from 0 (default) to 10 (adjustable), that maintained during the game;
- Each bomb will cause the snake to loose one trunk of its body. The game will end when any snake with only head remains hits the bomb.
A race against time
- In this game setting, players can customize the timer before the game starts;
- When time out occurs, the snake with a longer body wins.
Maintain Reversibly
- All game options ( two-player mode, AI mode, multi-items, etc.) are reversible;
Run the project from CLI
$ source /etc/profile.d/gradle.sh
$ gradle run
Tetris game
| welcome page | game interface |
|:————————-:|:————————-:|
|
|
|
Hold tetromino
- Users can use W-key to hold the current tetromino. As most of the Tetris games, this option will be disabled until the newly generated tetromino properly land.
Display next blocks
- The next 3 tetrominoes will be displayed on the right-hand side of the board.
Better Tetris graphics
- The held tetromino will be displayed along with the next coming tetrominoes on the right-hand side of the board;
- The finish screen has been improved.
Upated features
- A welcome GUI with keyboard control instruction is added.
Run the project from CLI
$ source /etc/profile.d/gradle.sh
$ gradle run