Created
September 27, 2016 19:35
-
-
Save thelazycamel/73436467a75fed4983b3b9f1ff54473a to your computer and use it in GitHub Desktop.
K2Poker.io Begins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@spec new(String.t, String.t) :: K2poker.Game.t | |
def new(player1, player2) do | |
game = %K2poker.Game{ | |
players: [ | |
%K2poker.Player{id: player1}, | |
%K2poker.Player{id: player2} | |
], | |
deck: K2poker.Deck.shuffled_strings | |
} | |
next_turn(game) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment