I think people shouldn't think in terms of main class..
that's a pleasureJohn Alcher Doloiras wrote:Thank you for the warm welcome!
There is a simple solution: call the class Game. . . the Main class . . . handles the state for both Team objects.
Sorry; I mistook it for FX. I shall add you to the Android forum.(This is an Android app, btw).
That is the usual advice, and the way I was taught to write GUI applications. Looking forward to the feedback.Anyway, I think that your point on writing the whole app without a GUI first is a great idea. . . .
SCJP 5, OCPJP 7, 8, SCJD 5, SCWCD 4, SCBCD 5, SCJWS 4, IBM OOAD 833 & 834, MongoDB Developer
what would happen if you click the winner button before the game has finished?
SCJP 5, OCPJP 7, 8, SCJD 5, SCWCD 4, SCBCD 5, SCJWS 4, IBM OOAD 833 & 834, MongoDB Developer
John Alcher Doloiras wrote:Hello! But another way of winning is getting to 21 points first (which is my core problem -- how would the Game class be notified if a team reaches 21).
SCJP 5, OCPJP 7, 8, SCJD 5, SCWCD 4, SCBCD 5, SCJWS 4, IBM OOAD 833 & 834, MongoDB Developer
SCJP 5, OCPJP 7, 8, SCJD 5, SCWCD 4, SCBCD 5, SCJWS 4, IBM OOAD 833 & 834, MongoDB Developer
John Alcher Doloiras wrote:Hello guys! I tried to implement my 3x3 app with the Observable pattern. Did I got the gist of the pattern right?
SCJP 5, OCPJP 7, 8, SCJD 5, SCWCD 4, SCBCD 5, SCJWS 4, IBM OOAD 833 & 834, MongoDB Developer
Happily living in the valley of the dried frogs with a few tiny ads.
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
|