From 74332a8b94ae0a5e97a565c418b3339404af6ae6 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sat, 11 Apr 2020 18:13:12 -0400 Subject: [PATCH] cleanup: Remove NOTES file While fun to look at, this is horrifically out of date :) See the top of [Dealer](lib/Euchre/Dealer.pm) for the true internals. --- NOTES | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 NOTES diff --git a/NOTES b/NOTES deleted file mode 100644 index f7c1423..0000000 --- a/NOTES +++ /dev/null @@ -1,49 +0,0 @@ -NOTES -===== - -Just some implementation details / thoughts. - - -In an OOP world... ------------------- - -Game has - Teams has - score - Players have - is_dealer - will_start - tricks_won - Hand has - Cards has - id - name - -In a functional world... ------------------------- -Key: cards are just ints (can derive class/value from int) - -subs: - trick_winner - score_tricks/round - deal_hands - -global state: - leader - dealer_id - calling_team - trump_suit - scores[2] - tricks[4] - -Round: - 1. deal cards - 2. - 3. leader = 1 - 4. for i 0..5 # play hand - a. - b. leader = trick_winner, tricks[$winner]++ - 5. scores += score_round(tricks) - 6. If max(scores) >= 10 -- DONE - -(note: <> means interactive) -- libgit2 1.1.1