7
votes
1answer
372 views

What are some techniques I can use to refactor Object Oriented code into Functional code?

I've spent about 20-40 hours developing part of a game using JavaScript and HTML5 canvas. When I started I had no idea what I was doing. So it started as a proof of concept and is coming along ...
4
votes
5answers
1k views

Tic tac toe class diagram

I'm in a software engineering class and I want to practice some skills on the most basic case possible : tic tac toe. I know this is overkill but I want to do it in "proper" OOP. I designed a class ...
1
vote
2answers
198 views

Would it be bad design to abstract a graphics library and wrap it in a single class? [duplicate]

I'm starting a game project in C++ using the SFML. It provides various classes for handling graphics, input, etc, but I would like to wrap it all up in a single Media class. I believe that by doing ...
5
votes
1answer
2k views

How do game programmers design their classes to reuse in AI, network and play and pass mode?

For a two player game where, your opponent could be on the network, CPU itself or near you where you would play turn by turn on the same machine. How do people design classes for re-use ? I am in a ...
2
votes
1answer
560 views

design of 'game engine' for small javascript games?

I'm making a group of two or three simple javascript games for fun. After someone finishes one game, they'll be presented with a harder or easier version of another game depending on whether the ...
-1
votes
2answers
348 views

I'm a iOS developer and I want to learn game programming [closed]

I programmed for the iphone (and a bit for mac) for the last 1 or 2 years and now I want to learn Java. I know OOP and am also farmiliar with a bit of the c syntax! Are there any books like java for ...