Hello everyone,
I am proficient in Java, but I am new in game development, and I would like some guidance please
I would like to develop a Java card game, but after identifying the obvious classes:
Card
Hand
Deck
Player(Abstract) extended by Human, Computer
Table
I am stuck
Do you think Hand should be part of the Player class (Vector for example)?
Do you think Player should be objects inside Table?
Can you recommends any resources with examples so I can understand how to start? I know that I must make objects communicate to simulate the game, but what is the âproperâ way or pattern used?
I read that you can use pattern such as MVC or observer observable to have the same game be played from console window, GUI, remote client etc⌠I like this idea, but I donât have the experience to implement it
Also, I read about the Facade pattern were you sum up all the objects into a single class so it becomes like a framework. What methods should a proper Facade support in a card game? game.start() game.bet()?
I would like to start coding a simple game with only console input/output and then worry about graphics etc, and use good design practises so I dont need to keep stating from scratch all the time if I add/remove to it.
Thanks for your time, and any help is very appreciated