package.lisp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. (defpackage #:game
  2. (:use #:cl)
  3. (:export #:game
  4. #:player
  5. #:player=
  6. #:player-equal
  7. #:opponent
  8. #:point
  9. #:set-turn
  10. #:move-checker
  11. #:undo-move
  12. #:finish-move
  13. #:offer-double
  14. #:accept-double
  15. #:refuse-double
  16. #:roll-dice
  17. #:set-winner
  18. #:opponents-turn
  19. #:opponent-can-double-p
  20. #:turn
  21. ))
  22. (defpackage #:board
  23. (:use #:cl)
  24. (:export #:bar
  25. #:off
  26. #:make-empty-board
  27. #:make-initial-board
  28. #:point-id
  29. #:pointp
  30. #:point-id
  31. #:point-number
  32. #:place
  33. #:checkers-on-point
  34. #:checkers-on-bar
  35. #:checkers-off
  36. #:set-checkers-on-point
  37. #:set-checkers-on-bar
  38. #:set-checkers-off
  39. #:has-checkers-on-p
  40. #:move-checker
  41. #:highest
  42. #:loss))
  43. (defpackage #:ui
  44. (:use #:cl)
  45. (:export #:player
  46. #:base-ui
  47. #:refresh
  48. #:checkers-locked-p
  49. #:offer-double-locked-p
  50. #:accept-double-locked-p
  51. #:finish-move-locked-p
  52. #:undo-locked-p
  53. #:unlock-only
  54. #:pausedp))
  55. (defpackage #:fsm
  56. (:use #:cl)
  57. (:export #:defmachine
  58. #:undefine-machine
  59. #:state-bindings))