Skip to content
/ fish Public

a multiplayer 6-person card game written using Love2D and Node.js

Notifications You must be signed in to change notification settings

vnev/fish

Repository files navigation

Fish


Card

  • image: Love2D Image object
  • suit: Card suit
  • value: Card numeric value
  • id: <suit>+<value>
  • subdeck_id: SubDecks.id

Deck

  • cards: set of Cards

SubDecks - 8 total subdecks (2-7 and 9-A for each suit)

  • id: one of ['diamonds_high', 'diamonds_low', 'spades_high', 'spades_low', 'clubs_high', 'clubs_low', 'hearts_high', 'hearts_low']
  • won_by: team ID

PlayerHand

  • cards: starts with 8 random cards drawn from Deck
  • handSize: current hand size, starts at 8
  • suits: Set of all suits in player's current cards, used for quicker lookup

Player

  • team: Team ID
  • id: Player ID
  • hand: pointer to PlayerHand

Team

  • players: Set of Player IDs
  • score: team score
  • numHandsWon: number of SubDecks won

About

a multiplayer 6-person card game written using Love2D and Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published