Skip to content

apyw/straights

Repository files navigation

straights

Straights card game in CLI

After compiling the program with make, the program can be executed with the command ./straights , where seed is an optional command-line argument input for deck shuffling

After the command is entered, the first thing the program asks for is player type. The user can decide between typing in ‘h’ for human player or ‘c’ for computer player for all 4 players. The human player option will require the player to decide all their moves on their own, that is, deciding which card to play and which to discard. The computer player is an automated player that plays or discards the first card possible. (To do: create smarter computer players)

// plays a card
play <card>
// discards a card
discard <card>
// computer player takes over human player
ragequit
// displays shuffled deck (cheats lol)
deck
// terminate program
quit

Model-View-Controller design pattern Screen Shot 2020-12-17 at 11 18 05 AM

About

Straights card game in CLI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published