Skip to content

Commit

Permalink
Upper case characters for player names
Browse files Browse the repository at this point in the history
Use X and O as upper case to make the board and player names more visible.
  • Loading branch information
practicalli-johnny committed Dec 29, 2018
1 parent fb8514e commit 7340a47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tictactoe_cli/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
[board]
(let [board (map
#(if (keyword? %)
(name %)
(clojure.string/upper-case (name %))
%)
board)]
(println (nth board 0) (nth board 1) (nth board 2))
Expand All @@ -91,7 +91,7 @@
(defn player-name
"Convert player representation, :o or :x to string, o or x"
[player]
(name player))
(clojure.string/upper-case (name player)))



Expand Down

0 comments on commit 7340a47

Please sign in to comment.