Skip to content

sanioooook/LinesTheGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LinesTheGame

Rules

  • The game board consists of a square grid of 9x9 cells, where the program randomly places 3 balls of different colors in some cells.
  • There are a total of 7 possible colors for the balls.
  • On each turn, the player can move one ball by selecting it and indicating its new location.
  • To make a move, there must be a clear path between the starting and ending cells, with no obstacles in between.
  • The objective of the game is to remove as many balls as possible by creating lines of 5 or more balls of the same color, either horizontally, vertically, or diagonally.
  • When a line of balls disappears, no new balls are added. In all other cases, three new balls are placed on the board after each move.
  • The line of balls can be formed in a horizontal, vertical, or diagonal direction.
  • The player can preview the next three balls that will appear on the board in the upcoming turn.
  • The goal of the game is to strategically move the balls to create lines of the same color and remove them from the board. Plan your moves carefully to maximize the number of lines formed and try to achieve the highest score possible. Good luck!

All data keep in local storage on youre computer