Play.Leap.Froggies.-.Educational.Games.and.Puzzles.-.Google.Chrome.2023-12-26.11-29-07.online-video-cutter.com.mp4
The Frog Leap Puzzle Game is a simple console-based game where the player needs to swap the positions of two sets of frogs to win the game. The left set of frogs can only move to the right, and the right set of frogs can only move to the left. Frogs can move one space forward or jump two spaces by leaping over another frog from the opposite side.
- Simple console-based gameplay.
- Intuitive rules and user-friendly interface.
- Dynamic display of the game board.
- Winning condition checks for an engaging experience.
-
Initial Display: The game starts with an initial display of frogs on the left ('G') and right ('B') sides, with an empty space denoted by '-':
[ 0 , 1 , 2 , 3 , 4 , 5 , 6 ] ['G', 'G', 'G', '-', 'B', 'B', 'B'] -
Making Moves:
- Enter the position of the frog you want to move.
- The game will display the updated board after each move.
-
Rules:
- The entered position should be between 0 to 6 or 'q' to quit the game.
- The selected position cannot be the position of the empty space ('-').
- Frogs can move one space forward or leap two spaces over another frog from the opposite side.
-
Winning the Game:
The puzzle is solved when the two sets of frogs have switched positions:
[ 0 , 1 , 2 , 3 , 4 , 5 , 6 ] ['B', 'B', 'B', '-', 'G', 'G', 'G']
-
Requirements:
- Python installed on your system.
-
Installation: Clone this repository to your local machine:
-
Running the Game: Open a terminal, navigate to the project directory, and run the game script:
python Frog_Leap_Problem_Statement_solved.py
OR
Click on "Play Game" to redirect to the Colab notebook: Play Game
-
Follow the on-screen instructions to play the game.
Feel free to contribute to the game by opening issues or submitting pull requests.
This project is licensed under the MIT License.
Enjoy playing the Frog Leap Puzzle Game!