Skip to content

GarbhanK/matching-pennies-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

matching-pennies-rs

The game 'Matching Pennies' implemented in Rust

How to play

Matching Pennies1 is a simple game played between two players (referred to as “Even” and “Odd”). At the start of each round of the game, each player has a penny, and must secretly pick either heads or tails. The players’ choices are then revealed simultaneously.

If the choices match (i.e., both heads or both tails) then Even wins the round and keeps both pennies, and the score for the round is thus +1 to Even and -1 to Odd. If the choices differ (i.e., one player chooses heads and the other player chooses tails) then Odd wins the round and keeps both pennies, and the score for the round is thus -1 to Even and +1 to Odd.

About

The game 'Matching Pennies' implemented in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages