๐Ÿ“ฆ erwinbonsma / MartianDice

Martian Dice game, including optimal play logic

โ˜… 4 stars โ‘‚ 0 forks ๐Ÿ‘ 4 watching โš–๏ธ Other
๐Ÿ“ฅ Clone https://github.com/erwinbonsma/MartianDice.git
HTTPS git clone https://github.com/erwinbonsma/MartianDice.git
SSH git clone git@github.com:erwinbonsma/MartianDice.git
CLI gh repo clone erwinbonsma/MartianDice
Erwin Bonsma Erwin Bonsma Switch to PAY_PER_REQUEST for DynamoDB 3919c6f 9 months ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ .vscode
๐Ÿ“ backend
๐Ÿ“ cdk
๐Ÿ“ frontend
๐Ÿ“ pico8
๐Ÿ“„ .env
๐Ÿ“„ .gitignore
๐Ÿ“„ Design.md
๐Ÿ“„ LICENSE
๐Ÿ“„ README.md
๐Ÿ“„ TODO.md
๐Ÿ“„ README.md

Martian Dice

Online multi-player version of the physical dice game Martian Dice.

This repository contains two different front ends:

Both have a completely different with Look & Feel. They use the same backend though and are compatible; you can use either to join a given room/game.

PICO-8 Front End

Martian Dice PICO-8 screenshots

Play the game on my website.

Features

  • Play against friends in a private room
  • Play against other players in the public room
  • Play against a Smart bot when there is nobody else
  • Fancy animations
  • In-game help
  • Basic chat function - select messages from a pre-configured list

Technologies

  • PICO-8
  • Javascript - to interface between PICO-8 (via GPIO) and the back end (via WebSockets)

HTML5 Front End

Martian Dice screenshot

Features

  • Play against other players
  • Play against bots: Random, Defensive, Aggressive, and Smart
  • Basic animations
  • Basic sound-effects
  • Responsive UI: play on phones, tablets or monitors
  • Chat function
  • In-game help
  • Graceful disconnection handling:
  • Disconnected players can rejoin
  • Forcefully end turns of non-responsive players

Technologies

Back End

Technologies:

  • Python
  • WebSocket communication
  • AWS
  • Lambda services
  • DynamDb storage
  • Deployment via CDK

Credits

  • Game Design: Scott Almes
  • Coding: Erwin Bonsma
  • Graphics: Erwin Bonsma
  • Sound samples (all from freesound.org):
  • Chicken (kip.mp3) by RudmerRotteveel