Questions tagged [game]

For questions requesting reviews of game development code.

Filter by
Sorted by
Tagged with
2
votes
1answer
673 views

Basic quiz in jQuery

I am using jQuery to implement a basic quiz functionality. How can I improve this code snippet even more? Is there any better way of doing it? I am using jQuery 1.6.4. ...
5
votes
3answers
414 views

Monopoly: Positions

I want to know if this can be trimmed down further. I am repeating myself with this.title and this.position. Also ...
4
votes
3answers
174 views

Cleaning up code and making better loops for soccer shoot-out game

I'll start by saying I've just started with programming, and Ruby is my first language. I've made a little soccer shoot-out game. I'm having problems with the end of the code looping back to where I ...
3
votes
2answers
249 views

WIP platformer game

Initial note: You do not need to have knowledge of LWJGL or OpenGL to review this code. The only parts of the code that require LWJGL knowledge are the Game class, ...
5
votes
3answers
754 views

Small guessing game in Ruby

I'm writing a small guessing game. I'm writing a points calculation algorithm. I wrote the following, and it works. But I feel like I'm bringing over procedural background into Ruby, or not ...
14
votes
2answers
2k views

Monopoly game cards

This functionality is for a Monopoly board game. In particular, when the player lands on Chance or Community Chest, a random card is drawn with a particular set of instruction, a bonus could be paid ...
1
vote
1answer
151 views

Removing redundancy from an immutable “rules class”

I am writing a board game program in Java. Slightly similar to chess or civilization in that each player has a set of units, and each unit has certain actions that it can take. The base ...
4
votes
1answer
989 views

How can I improve this version of the board game Mastermind?

It's a standalone HTML file on GitHub I included the CSS and JavaScript with the HTML so it would be easier to e-mail the game. I'm most interested in comments about the solution-checking functions. ...
4
votes
3answers
604 views

Turn-based game setting properties for playcards

I am programming with Java (server side) and JavaScript a card game and I do not know how to give properties (on server side) to every card that I create. For a match I need 20 different cards from a ...
2
votes
1answer
2k views

Game map tiles generation with php

I am working on a browser strategy game as a hobby and came up with a decision to use a tile-based map for the world map. I have several questions so far: I am using double-cache (file and apc) for ...
8
votes
1answer
107 views

Graphical game application

I'm writing my first JavaScript application (no 3rd party libraries used) and looking for some high-level guidance on how to better organize the code into separate classes & files. Here is a ...
7
votes
2answers
1k views

Playing card game method

Is there a better, more elegant solution to the following method? ...
4
votes
5answers
248 views

“Buy and Sell” game project

This is a buy and sell game. I've revised it, though it's still unfinished. I would appreciate it if someone could review it again for me. ...
3
votes
1answer
495 views

Kings Drinking Game Review Request 2.0 JForm GUI

This request is a new version of this request: Kings Drinking Game This version has a custom JForm GUI and almost all new methods. GUI: I wrote a program to simulate the drinking card game Kings, ...
4
votes
1answer
111 views

Math Skills Game Advice

I think my code works pretty well, although I'm biased: http://jsfiddle.net/AHKb4/2/ Basic Overview: I'm working on building a math skill game, where the objective is to drag and drop div's to a ...
4
votes
2answers
139 views

Android GameWatch game for learning/review

I am hoping this is the right place. I was hoping to find someone to try and help me not only learn but have a look at what I have already done on Android. DISCLAIMER: I am a long time (10+ years) ...
1
vote
2answers
2k views

Trivia game refactoring

I am trying to re-factor (improve design of existing working code) with the following principals: Switch statements removal. Encapsulate Field Extract Class Extract Interface Extract Method Extract ...
6
votes
1answer
299 views

Improvements on Python game?

This is a game I made in Python. While it is not my first, I am not happy with the result. I would like suggestions on ways I can make it better, more user-friendly, and more enjoyable. Also, if ...
8
votes
2answers
12k views

How is my BlackJack game design?

This is a command line BlackJack game created in Java as my final project for an advanced programming class. What do you think about it? Have I used OOP correctly? What grade should I get for this? :...
19
votes
3answers
14k views

TicTacToe logic in Java

I'm currently studying Java by myself. The book I'm using (while very good) lacks feedback (obviously). While trying to write this program, I found myself solving most of the problems I've ...
5
votes
1answer
4k views

Card-matching game

I updated my code according to a few suggestions from my last post, so I thought I'd repost it to see what other feedback I could get. I also commented it heavily and fixed some of the functionality. ...
2
votes
3answers
10k 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
2answers
2k views

Battleship type game in Java

I made the code, and it works, but it uses many if conditions and it looks ugly. I would really appreciate it if someone could give me a hand by pointing me in the ...
7
votes
2answers
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 ...
4
votes
1answer
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 ...
15
votes
2answers
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 ...
4
votes
2answers
2k views

How can I make a simple number guessing game more efficient?

I have been programming a simple number guessing game and I am wondering if there is any way of making my code more efficient and cleaner. I have spent some time on it implementing error checking to ...
1
vote
1answer
7k views

Wheel of Fortune game

The Demo for what I have made is located here: http://jsfiddle.net/maniator/H5LKy/181/ Basically I am trying to make a Wheel of Fortune type game. Is there anything I could improve on in the code? <...
11
votes
3answers
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. ...
9
votes
3answers
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
1answer
270 views

Hot 18 game (modified Blackjack) in JavaScript

I've just completed my first JavaScript game. I strongly welcome any advice/opinions/insults on how crappy or good my game is. Do you notice anything that is poorly done? Is there anything that I ...
8
votes
1answer
431 views

Cleaning up/optimizing numerical guessing game

I'm a Python newbie and I'd like to know how I could clean this up/optimize it (but nothing too advanced, please). As far as I know, it's working as it should, but if you see any errors then please ...
4
votes
2answers
896 views

JavaScript Tic-Tac-Toe review: best practices, correctness, and any other improvements/suggestions

I just finished a little game of Tic-Tac-Toe for a class I'm in, and I think it looks alright, but I'm pretty fresh, so I would like to know how I might be able to improve it, given the situation I'm ...
3
votes
2answers
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: ...
2
votes
1answer
633 views

Suggestions for improving my Tic-Tac-Toe code in JavaScript

I have some hack-ey programming experience and recently made a Tic-Tac-Toe game in JavaScript. The game seems to work fine. I am looking for some constructive criticism to help understand what can be ...
7
votes
1answer
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. ...
5
votes
2answers
2k views

Help with refactoring my Tic Tac Toe game

I'm very new to coding and have been diving into the skill with Python as my first language. One of the first programs I wrote for a class was this Tic Tac Toe game. I re-wrote this game using classes ...
4
votes
3answers
530 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 ...
3
votes
2answers
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 ...
6
votes
1answer
801 views

Python model for a “snake”-like game

I wrote a python model for the game "snake" that I'm not really satisfied with. My intention was to separate the game logic from the drawing and input handling (which worked quite well) but I've got ...
4
votes
1answer
1k views

Small Ruby Bingo Game

The code creates a Ruby bingo game for the console and works properly. I believe the code I wrote needs some work, though, as I am new to Ruby. Any help would be appreciated. ...
8
votes
1answer
410 views

Hot 18 game (modified Blackjack)

I've just completed my first Ruby game. It's a modified BlackJack type game, called Hot 18. I've used all methods for this Ruby game. It's a one-player game, but you can play with 1, 2, or 3 hands. I ...
3
votes
2answers
306 views

Dominion card game - how can I take advantage of interfaces?

I'm writing a card game (Dominion) as a pet project. I'm new to C++ but not programming. A player has a deck, containing the hand and cards in play (tableau). Outside the player, there are piles of ...
6
votes
3answers
11k views

Blackjack card game

It's been a long while since I've done any Python programming so I thought I'd start with a simple Blackjack game. Any comments on how I can make this more readable? Use more methods perhaps? ...
3
votes
2answers
1k views

Kings Drinking Game

This Review Request evolves into this Review Request now with a custom UI and other changes. I wrote a program to simulate the drinking card game Kings. This is my third Java Project. I didn't quite ...
3
votes
2answers
997 views

Review of object-oriented skills with War game

Here are my code samples: https://github.com/arthaeus/war This particular sample is the card game 'War'. The interviewer off-handedly asked me: "what if I wanted to play War with an Uno deck of ...
5
votes
2answers
929 views

Simplifying `if` statements in Tic Tac Toe function

I'm currently trying to improve my coding skills, so I'm trying to code a Tic Tac Toe game. At one point a "win check" is needed.I'm using this code to check: ...
10
votes
2answers
3k views

A small Python text adventure “frame”

I've been working on a small "frame" for a text adventure in Python. So it's less of a real adventure and more of a small testing location for all the commands. I pretty much just started learning ...
7
votes
3answers
7k views

Marbles game with classes

Project contains 3 classes: ...
5
votes
2answers
275 views

Looking for performance suggestions in Noise algorithm

I believe this is considered value noise or possibly gradient noise in that I simply interpolate between random values (always returning the same values per coordinate). I am using this currently to ...