Questions tagged [game]
For questions requesting reviews of game development code.
1,936
questions
7
votes
1
answer
7k
views
Review of Tic Tac Toe game in Objective-C
I am completely new to Objective-C. I have written a simple SingleView Tic Tac Toe Application application for learning purposes. While writing the app, I've tried to be as much sound as I could. ...
6
votes
1
answer
11k
views
Simple Mastermind game
This is pretty much my first "bigger" application besides some "Hello World!" stuff, so I would appreciate critiques to improve my style.
It can be started with ...
2
votes
3
answers
11k
views
Basic slot machine game
I have been learning PHP and wanted to see if I could make a very simple slot machine game. Everything works, but I'm sure this is not the best way to do this. Please let me know how you would do ...
4
votes
2
answers
11k
views
Rock-Paper-Scissors game
This is the first piece of code I wrote on my own. I tried to use everything I know, like functions, loops and variables. Is it good or could it be simpler?
Please be hard as you can be with me ...
2
votes
3
answers
1k
views
HTML5 / JavaScript Pong game
I am nearly done developing my pong game (made in HTML5 / JavaScript), and I would like some constructive criticism on my code.
Full code
Initialization:
...
11
votes
3
answers
1k
views
Animated JavaScript/jQuery game
This was a code test I was asked to complete by employer, and since they rejected me, I wonder what should I have done differently.
...
1
vote
1
answer
4k
views
Moving a game character around the screen
I'm a newbie to Python, and I was wondering whether anyone could give me any pointers on improving the following code:
...
2
votes
1
answer
195
views
Game level parser
The code for the LevelParser is shown below. It is also documented using Java-doc; the docs are in the project directory.
Now by improving this piece of code, I do ...
13
votes
1
answer
18k
views
Battleship game in C
Goal: Create a simple battleship game to test what I've learned so far.
...
4
votes
4
answers
18k
views
Building a Breakout game from scratch
I'm a beginner, currently taking the Stanford's free CS106A course which teaches Java. The second assignment has you build Breakout from scratch using the ACM programs and graphics packages.
Since ...
3
votes
2
answers
7k
views
Chess game function
I wrote a little C++ program for playing Chess:
Now I check the valid moves by filling an 8x8 board with different flags called cBoard.
...
4
votes
1
answer
1k
views
Risk board game - best practices, private vs public variables and methods
This is my first attempt at writing something in JavaScript besides a few Project Euler problems I did first. It's intended to be a library used client side and server side (both of which I know very ...
9
votes
3
answers
3k
views
Nim Game in Haskell
I wrote Nim Game in Haskell. Since I'm just learning any review comments are highly appreciated.
...
2
votes
1
answer
279
views
Server-loaded buildings function for an iOS game
I'm working on a game for iOS devices and this is the function we use to create server-loaded buildings. The server loading is in another function and everything works just fine, but I was wondering ...
3
votes
1
answer
10k
views
Text based 2D Minesweeper
I got my 1 dimensional program to work just fine so I figured I just need a few tweaks to get the 2D to work as well. It's not fully completed but it would helpful to know if I am on the right track ...
2
votes
2
answers
13k
views
Blackjack casino game
Blackjack (twenty-one) is a casino game played with cards. The goal of
the game to draw cards that total as close to 21 points as possible
without going over. All face cards count as 10 points, ...
6
votes
1
answer
407
views
Game with voxels
I started a hobby project which would be the first thing I do in C that is intended to be seen by someone else. I've been practicing for a while but I'm actually a beginner; I never wrote real ...
3
votes
2
answers
2k
views
Improving and optimizing Tic-Tac-Toe game written in Python 3
I've been teaching myself Python3 for about a week now and I decided to put my skills to the test by writing a simple Tic-Tac-Toe game. Here is what I came up with:
...
4
votes
3
answers
573
views
King's Cup game
I just wrote a small card game in JavaScript, CSS and HTML. This is kind of my first project that I have cared about front-end. So I got things to work, but I am sure that this is not the smartest way ...
6
votes
1
answer
8k
views
Snake game in Python
I am a biologist. Some time ago, I wanted to learn to program, and since I am fascinated by the 4th dimension and I was fascinated by the rotatation of hypercubes and hypersphere, so I decided to ...
7
votes
2
answers
9k
views
"Deal Or No Deal"-style game in Java
This game is explained here.
Could this code be more efficient?
The Game Class
...
5
votes
1
answer
3k
views
"Deal or No Deal" console game
Can anyone check this code of mine for improvements? This was coded using Java with OOP concepts.
Game Class
...
8
votes
9
answers
7k
views
Simple chain reaction game
Not long ago I tried to get a game developer job (casual games). There was a task to write a simple game like this one. I was supposed to use an existing game engine (given in the task) and only ...
8
votes
2
answers
2k
views
Template for creating 2D games
I am using the following template to program my 2D games in. Is there any way I can improve it?
Splash screen:
...
11
votes
1
answer
2k
views
Component-based system for JavaScript game
I'm creating a JavaScript/WebGL based game and would like you all to take a look at the current entity component system which I created for it. I've used it once before on another project, and while I ...
8
votes
1
answer
6k
views
Yahtzee Code Kata in Python
I tried a Yahtzee kata in Python the other day. I'm not particularly experienced in Python (C# is my main language) so I'd be interested in any feedback as to how I could have done things better. In ...
4
votes
2
answers
2k
views
My Memory Game "Engine"
Mostly for the experience (but also so I could waste hours playing it), I made a simple memory card game in JavaScript. I built it so it has a backbone framework that could be easily extended by ...
28
votes
4
answers
4k
views
Self-playing Baseball game
The Demo for what I have made is located here
Basically I am trying to make a self playing JavaScript baseball game with the use of no libraries.
Is there anything I could improve on in the code?
<...
4
votes
1
answer
317
views
Text-based vertical scroller game
I'm making a simple text game using the pdCurses library and a few other minor things like a vertical scroller in which you avoid the randomly-generated walls.
There are two walls on left and right ...
7
votes
2
answers
2k
views
Higher lower game in Ruby
I finished the Ruby chapter in Seven Languages in Seven Weeks. It tries to make you familiar with the core concepts of several languages rather quickly. Dutifully I did all exercises, but most likely ...
11
votes
7
answers
4k
views
Rock Papers Scissors in Python
I am a newbie to Python and have started object-oriented programming recently. I have implemented a "Rock Paper Scissors" application in OOP. I would like for you to evaluate my code, and tell me ...
12
votes
4
answers
6k
views
Tic Tac Toe game
I don't have any questions about this piece of code; it compiles just fine in Visual Studio 2010. I just wanted to post it to see if anyone has any good ideas on how to simplify it, or pointing out ...
24
votes
2
answers
21k
views
Texas Hold'em in Java
I have been a programmer for 12 years, mainly ERP software and C development and
am looking to make a career/specialty change to Java. I've read it countless
times if you want to learn a new language ...
15
votes
2
answers
2k
views
Guessing game - am I using the concept of objects in Java properly?
I'm new to Java and find it hard to grasp the concept of objects. I wrote a simple guessing game to practice the concept of OO programming but I am not sure if I am doing it correctly.
The objective ...
16
votes
2
answers
16k
views
Simple Tic-Tac-Toe PHP/Pure HTML
I've been doing a simple Tic-Tac-Toe with PHP, generating only HTML code.
A few notes:
I didn't bother yet to give an AI to the opponents (the Os), and it is intentional.
There is no CSS style to ...
17
votes
7
answers
2k
views
Parsing a file for a game
Is this code good enough, or is it stinky?
...