Guest User

Untitled

a guest
Apr 25th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. (let* ((ser (with-input-from-file "state.scm"
  2. (lambda () (read))))
  3. (obj (u8vector->object ser)))
  4. (cond
  5. ((game-state? obj
  6. obj)
  7. ((game-state-1? obj)
  8. (game-state-from-v1 obj))
  9. ((game-state-2? obj)
  10. (game-state-from-v2 obj))
  11. (else
  12. (raise "This is not a game state!"))))
Add Comment
Please, Sign In to add comment