Skip to content

Developed a C implementation of the traditional seed-sowing game Tchuka Ruma as part of my CSE 220 coursework. The project features a text-based terminal interface, CMake-based build system, and demonstrates proficiency in C programming, algorithmic thinking, and game logic implementation 🤖

Notifications You must be signed in to change notification settings

hasanpeal/Tchuka-Ruma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tchuka Ruma

Description

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.

How to Build

This project uses CMake for building. Ensure you have CMake and a C compiler installed.

cmake -S . -B build
cmake --build build

How to Run

After building, run the executable:

./build/hw0_main

Gameplay Instructions

  • 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.

References


Developed for CSE 220 Homework Assignment #0.

About

Developed a C implementation of the traditional seed-sowing game Tchuka Ruma as part of my CSE 220 coursework. The project features a text-based terminal interface, CMake-based build system, and demonstrates proficiency in C programming, algorithmic thinking, and game logic implementation 🤖

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published