That depends on the requirements for the project. It is entirely possible to make a game of Uno without a GUI. But if the assignment says make one then you need to make one. Even so (if you need to make a GUI) I would suggest writing the game without a GUI first, then add the GUI afterwards.Do i need to learn swings for the same?
Steve
tajinder pal singh wrote:Wow ! So quick and descriptive response .Appreciate it. Thanks a lot .
I will start the way you have explained me . And will come back here once am stuck.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
tajinder pal singh wrote:Well you are right i am skipping the GUI part and regarding game behaviour, not only Referee part butprogram should play the game itself.
Well i tried writing some code for Populating deck(Randomly). Am pretty sure code has many problems and it is not up to the marks the way you guys expect.
Please advice me. Am pasting piece of code.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
tajinder pal singh wrote:(via PM) Hi Steve,
Sorry for approaching you like this but i need desperate help. Please look into UNO Game thread and give me your valuable advice.
Steve
Ed Macall wrote: I bet a bunch of people hadn't answered because of how difficult it was to get the project put inside Eclipse or NetBeans or whatever IDE they are using.
Steve
class is controller and card ,MainDeck falls under model. Am i right ?UNOGame
Yes, it was, but it doesn't make it much easier because you have such long lines.tajinder pal singh wrote:Hi Campbell ,
Please see now ,i have added Code Tags(As per me this is fine).
Not sure if this is all you meant.
tajinder pal singh wrote:if someone can suggest me how i can apply Observer design pattern on above code.i read about observer design pattern but still not clear which class would implement subject interface and which one will implement observer interface.
Steve
never comes out to be true for me . (though i can see in IDE while debugging that same Object of type UNOCard exists in collection which iterator is iterating)if(tmpCard.equals(iter.next())){
Steve
tajinder pal singh wrote:
Tim Driven Development | Test until the fear goes away
Consider Paul's rocket mass heater. |