This project is a C implementation of the traditional seed-sowing game Tchuka Ruma. The game is played in a text-based terminal interface, where the player sows seeds from one of four sections into a 'ruma' (store). The objective is to move all seeds into the ruma following the game's rules. This project was developed as part of CSE 220 coursework.
This project uses CMake for building. Ensure you have CMake and a C compiler installed.
cmake -S . -B build
cmake --build buildAfter building, run the executable:
./build/hw0_main- The game board consists of four sections (each starting with 2 seeds) and a ruma (store).
- On your turn, choose a section (1-4) that contains seeds.
- All seeds from the chosen section are picked up and sown one by one into subsequent sections and the ruma, wrapping around as needed.
- If the last seed lands in the ruma, your turn ends and you may choose again.
- If the last seed lands in a section with more than one seed, you pick up all seeds from that section and continue sowing.
- If the last seed lands in a section with only one seed, you lose.
- You win if all four sections are empty and there is at least one seed in the ruma.
Developed for CSE 220 Homework Assignment #0.