diff options
author | Grant Shangreaux <grant@unabridgedsoftware.com> | 2022-01-25 23:25:32 -0600 |
---|---|---|
committer | Grant Shangreaux <grant@unabridgedsoftware.com> | 2022-01-25 23:25:32 -0600 |
commit | b049200234d51cbbec73a9f107a62ad7e7bc49bb (patch) | |
tree | 94fde951449b459dd5ae45503b2ca4eccec57ab3 | |
parent | 09b602d7dc03050e6462b65c67710679b80ad307 (diff) |
Clean: add heading and upcase
-rw-r--r-- | mafia.org | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -87,7 +87,7 @@ Notice the ~:initform~ slot options (instance variables are called slots in CLOS/EIEIO). By default, ~(make-instance 'mafia)~ would initialize the object instance with these values. We will work on defining ~mafia-initialize-actors~ next. -*** actors +*** Actors We may as well use an object to represent the actors as well. Each one will have an *id* and a *status* which will be one of ~'alive 'dead 'killer~. We can actually @@ -115,6 +115,8 @@ use inheritance here to set apart the killer with its own ~:initform~. Then the function ~mafia-initial-actors~ will handle initializing N actors into a list which is the ~:initform~ of the ~mafia~ game instance. +*** Game Initialization Functions + #+name: initialization-helpers #+begin_src emacs-lisp :results silent (defun mafia-initialize-actors (players) |