-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscratchpad.txt
20 lines (14 loc) · 943 Bytes
/
scratchpad.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
click by deck card should try to set hand card and make deck button disabled
in case hand can't accept card, deck should try to set table card and make deck button disabled
in case card wasn't been accepted by hand or table, deck nutton should be left enabled
cards on hand or on table should be disabled on deck panel
hand panel should be synced with model of hand
http://www.java2s.com/Code/Java/Design-Pattern/AsimpledemoofObservableandObserver.htm
http://zetcode.com/tutorials/javaswingtutorial/swingmodels/
---
cardButton = new CardButton() and cardButton.updateIcon() should run together
possible ways to fix it? Factory method? Builder?
http://en.wikipedia.org/wiki/Builder_pattern
http://www.javaworld.com/javaworld/jw-01-2004/jw-0102-toolbox.html?page=1
http://stackoverflow.com/questions/3404301/whats-wrong-with-overridable-method-calls-in-constructors
http://www.codeproject.com/KB/books/EffectiveJava.aspx