1
Fork 0
solar-conflux/fsharp/ygosim/src/Program.fs
Matei Adriel eab212c039
fsharp(ygosim): feat: added the basic drawing and next-turn stuff
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-12-07 19:31:53 +02:00

21 lines
517 B
Forth

module Main =
open Board
open Card
open Game
[<EntryPoint>]
let main argv =
let board = Board.emptyBoard
let sampleCard = Spell ({name= "sampleCard"; text="something"}, {spellType = Card.ContinuosSpell})
let (first, second) = board.players
let secondBoard = withCurrentPlayer <| Game.toDeckBottom sampleCard <| board
printfn "%A" secondBoard
let thirdBoard = doTurn secondBoard
printfn "%A" thirdBoard
0