Skip to content

joshuaptfan/odd-or-even

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Odd or Even

A reflex game of simple speed math. Play solo or local versus.

Play in the web app: https://oddoreven.app/

Progressive Web App — can be installed on Android/iOS for the best fullscreen experience. The UI will be larger, and the game won't exit fullscreen when switching back from another app.

How to Play

Solo

Choose whether each math expression's result is odd or even before time runs out. The time limit decreases gradually as the game progresses.

Keyboard controls are available in this mode.

Key Function
Z Odd
X Even
Space Restart

Versus

There are 2 teams, Odd and Even. Each math expression's result has a parity of either odd or even.

There are 2 buttons in the center, ◯ and ✕. If the parity matches your team, press ◯. If it doesn't match your team, press ✕. Race against your opponent to press the correct button for your team.

Math Tips

It is not necessary to actually evaluate the expression to find out its parity. These are the rules of parity:

Addition and subtraction

  • even ± even = even
  • even ± odd = odd
  • odd ± odd = even

Multiplication

  • even × even = even
  • even × odd = even
  • odd × odd = odd

Easy and normal difficulties only include addition and subtraction, so determining parity is only a matter of counting the number of odd numbers. If there are an odd number of odd numbers, the result is odd.

Hard difficulty adds multiplication to the mix, forcing players to pay attention to the order of operations.

Ideas for Play

  • 2v2 — large touchscreen recommended
  • Drinking game — winner takes a drink

What Inspired This Game

In local multiplayer touchscreen games, there is a problem where the game has no way to be sure that any input originated from the correct player. So, I had an idea for a game that turns that problem into a feature. Originally, I wanted to make a game with 1 large button shared by all players, and that quickly evolved into the current nested 2-button design.

This game is free. If you enjoy it, consider making a small donation according to what you feel the game is worth.

PayPal

License

MIT License