Skip to content

davindj/add-modulo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add Modulo

Add Modulo is a strategy game for my WWDC 2021 Swift Student Challenge Submission. And thankfully Add Modulo makes me 1 of 350 WWDC2021 Scholarship Winners :D

My WWDC Profile: >> Portal <<

About Add Modulo

Add Modulo is a game that teaches player about basic Addition, Modulo operator and Strategy Thinking. This game itself is based on Indonesia Local Children's game called "Tambah Tambahan" and also a variant of the Chopstick Game. In Indonesia, this game is indeed famous, but only among certain ages. All Indonesians born around 2000 know this game, but the rest who weren't born around 2000 tend not to know this game.

By Making this game I wanted to educate children around the world, and also preserve this local game to the world.

How to Play Add Modulo

  1. Player Choose Action
    1. Tap / Addition
      Player add number of selected hand to one of other player's hand
    2. Distribute
      Player distribute number in his hand example: 1 2 become 0 3
  2. Other player choose action (same as player's action)
  3. Repeat game until one of the players get eliminated

Add Modulo Rules

  • Player get eliminated when the number on both of his hand is 0
  • Player can only add using non zero hand
  • Player can only add opponent's non zero hand
  • If number on a hand is greater or equal than 5 then the number become number mod 5
    example:
    • 6 become 1
    • 5 become 0
  • Player cant swap number of hand.
    example:
    • 3 0 become 0 3

How to Run Add Modulo Project

  1. Clone this project
  2. Open Add Modulo.playground in Swift Playground
  3. In Swift Playground, Turn off Enable Results
  4. Enjoy :D

Preview

image info image info image info image info image info image info

Disclaimer

For sound assets, its not made by me, I take the asset in the online marketplace called itch.io

For image assets, its made by me and my friend

Beside that, all assets are made by me

Credit

Coming soon...