2019-12-05 18:17:05 +01:00
|
|
|
module Main =
|
2019-12-07 18:31:53 +01:00
|
|
|
open Board
|
|
|
|
open Card
|
|
|
|
open Game
|
|
|
|
|
2019-12-05 18:17:05 +01:00
|
|
|
[<EntryPoint>]
|
|
|
|
let main argv =
|
2019-12-07 18:31:53 +01:00
|
|
|
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
|