Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Objects Creating the MVP Getting Started

Soumitra Mehrotra
Soumitra Mehrotra
1,468 Points

In context to the hangman game, what actually are its behaviour and states ?

We want to separate the prompting and game rules from its state and behaviour. What are its state and behaviour. Is game class resembles backend and prompter class- front end ???

It is like with html and css - separating the structure from the formatting. In this case the game logic remains the same regardless of the visual appearance of the game or the type of device on which it was designed to run.