Skip to content

Commit

Permalink
refactor simple-version/game
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Jun 26, 2024
1 parent abada52 commit 07ccc24
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/simple-version/game.phel
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
(ns phel-snake\simple-version\game
(:require phel-cli-gui\terminal-gui :as gui))

(gui/add-output-formatter {:style-name "snake-head" :foreground "black" :background "red" :options ["bold"]})
(gui/add-output-formatter {:style-name "snake-tail" :foreground "black" :background "green" :options ["bold"]})
(gui/add-output-formatter {:style-name "snake-head"
:foreground "black" :background "red" :options ["bold"]})
(gui/add-output-formatter {:style-name "snake-tail"
:foreground "black" :background "green" :options ["bold"]})

(defstruct board-struct [width height])
(defstruct snake-struct [direction speed head tail])
Expand Down

0 comments on commit 07ccc24

Please sign in to comment.