Inspiration

I created this project because I want to popularize traditional games, specifically congklak. I played this game as a kid and I think it was a lot of fun, so I wanted people to try it out as well!

What it does

It simulates a game of congklak for two players. It contains all the rules and it will move the seed automatically, so the players can focus on the game.

How I built it

I build the logic using python and used pygame to build the gui

Challenges I ran into

  1. Simulating the rule was really challenging because it involves a recursive process when moving the seeds.
  2. It was particularly hard to skip the opponent's hole when moving the seed but I got around it by using while loop and extending the range.
  3. testing was a major challenge because i couldn't find existing congklak simulator so i have to do all the test case by hand

Accomplishments that I'm proud of

  1. I just learned pygame yesterday. It was very fun using it
  2. Simulating the rules takes quite a bit of time but in the end, I was able to get the correct output!

What I learned

  1. scaling down problem into smaller chunk
  2. to use git to save version
  3. learned a ton of pygame

What's next for Congklak

  1. major upgrade would be the program showing the user how it moves the seed and not just the final state. It will make the game much more understandable and it will help human strategize.

Built With

Share this project:

Updates