The River Crossing Puzzle Game is a classic puzzle that involves a farmer transporting a wolf, a sheep, and a cabbage across a river. The rules stipulate that the farmer cannot leave the wolf alone with the sheep, and the sheep cannot be left alone with the cabbage, as the wolf would eat the sheep, and the sheep would eat the cabbage.
This project implements the River Crossing Puzzle Game using OpenGL, GLFW, Glad, GLM, and other libraries for graphics rendering, along with additional features such as text rendering and user interface elements.
- OpenGL
- GLFW
- Glad
- GLM
- stb_image
- gltext
- Assimp
- SFML
if you are on windows you can download the .rar file from this link, and run the .exe file to lunch the game
- Clone the repository:
git clone https://github.com/raoufslv/River-Crossing-Puzzle-windows.git cd river-crossing-puzzle
Build the project using your preferred build system.
The graphics rendering is powered by OpenGL, with models loaded using Assimp and textures applied for a visually appealing experience.
Text rendering is implemented using the gltext library, providing clear communication with the player.
The game logic adheres to the rules of the River Crossing Puzzle. Objects are represented, and their movements are controlled in compliance with the puzzle's constraints.
-
Run the compiled executable.
-
Use the following keys:
- W: Move the wolf
- T: Move the sheep
- K: Move the cabbage
- Enter: Start the game
-
Successfully transport all elements to the other side without breaking the rules to win.
Victory! All elements safely transported.
Game lost due to rule violation.
In conclusion, this project successfully implements the River Crossing Puzzle Game, showcasing the integration of various graphics technologies. It provides an interactive and visually appealing experience for players.
Feel free to contribute, report issues, or provide feedback.