Post-Cancellation, Pre-Nisei Netrunner Rotation
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

23 linhas
477B

  1. module State where
  2. import System.Random
  3. import Packs
  4. type State = (Pool, BoxQueue, StdGen)
  5. data InRot = Ir DataPack deriving (Show, Eq)
  6. data OutRot = Or DataPack Integer
  7. instance Eq OutRot where
  8. (Or d1 _) == (Or d2 _) = d1 == d2
  9. data BoxQueue = Bq [Maybe BigBox]
  10. type Pool = ([InRot], [OutRot])
  11. createInRot :: [DataPack] -> [InRot]
  12. createInRot x = map (\n -> Ir n) x
  13. createOutRot :: [DataPack] -> [OutRot]
  14. createOutRot x = map (\n -> Or n 0) x