ParletteSoftware / bitfl

Billy in the Fat Lane
GNU General Public License v3.0
0 stars 0 forks source link

Create game class #5

Closed matthew-parlette closed 11 years ago

matthew-parlette commented 11 years ago

I believe that we should have a game class to keep track of the status of the game, to accept commands and verify movements/actions.

We can have bitfl.py only be the interface to this game, which will allow us later to have multiple games running and allow for multiplayer a bit easier.

The game class would contain:

Later, the game class will keep track of the economy and random events.

cparlette commented 11 years ago

I like the idea of a game class.

Should the game "board" be a grid? I don't think it would be bad, but it might be overkill. I'm just picturing the Jones board, and it's really more of a loop than a grid. We might just need a list or dict, we may not really need a 2d array, although if we did that it would leave expansion as an option and be a learning experience.

I'd be cool with either.

cparlette commented 11 years ago

So I just read your comment regarding the Locations, and I think a 2d array does make sense. If the element of the array is the Location object though, we may not need to have the position of the location be in the Location class, if that makes sense.

matthew-parlette commented 11 years ago

That does make sense, so maybe we have a map (that is created by game) to keep track of everything on the game board, and that can calculate the distance between to places