Обязательно библиотека ncurses
1. Змейка Requirement:
The size of ground is 24 (rows) X 30 (columns). The ground has a boundary and obstacles.
The snake gets faster and longer every 15 points.
The game shows the current points.
A user gets 1 point every step the snake moves.
If the head of a snake collides one of its body, the boundary and the obstacles, the snake will die and the game gets over.
It should be colorful.
UP arrow key turns the snake upward.
DOWN arrow key turns the snake downward.
LEFT arrow key turns the snake to the left.
RIGHT arrow key turns the snake to the right.
Esc key stops the game.
You can add more functions creatively.
This Snake game has the food feeding fuction.
The food appears at random location with a certain interval.
If the snake eats the food, the score is increased.
if the user presses any arrow key that moves the snake go backward, the pressed key input is ignored.
You can add more functions creatively.