Reviewing code is fun! Use this tag to identify your post as an entry to the current community challenge. See the Community Bulletin, or browse the CR Meta site for more info. Typically you should also tag code-challenge questions with [tag:game] as well.
8
votes
1answer
68 views
Trading Card Game's Hand and HandView implementation and unit tests
This question continues on my previous implementations of the Hand class of a Trading Card Game, earlier questions can be found here:
Earlier model: Trading Card ...
8
votes
1answer
55 views
Trading Card Game's Hand and HandView implementation using composition and decoration
Building on the older building block, Trading Card Game's Hand class and tests, I decided it was time to implement a HandView, which can be implemented by a GUI ...
5
votes
1answer
62 views
Field class used by my trading card game
As many may know, I am developing a Trading Card Game for the Coding Challenge.
I have just completed the Field class and have not used it in practice yet, so all ...
12
votes
3answers
176 views
Trading Card Game's Hand class and tests
As part of a Trading Card Game, I have created a Hand that will need to hold all cards that a player currently has in his hand. The code is built using Java 8.
The ...
12
votes
1answer
113 views
Recursive and flexible approach to Tic-Tac-Toe
Description
This is my code for the Weekend Challenge Reboot - Tic Tac Toe Ultimate.
The game can be played here: http://www.zomis.net/ttt (along with some other variations that are also use the ...
12
votes
1answer
67 views
RPSLSMB OOP Version 2
Rock Paper Lizard Spock Monkey Banana
My original post
Based off of Malachi's post
I've changed the way rules work in this version to allow ties to result in double loss or double win. While ...
7
votes
3answers
162 views
RPSLS game revisited. Is my structure better than previous attempts?
This question is a follow up to these questions:
RPSLS Game in C#
Is my coding technique progressing in terms of C# loops?
RPSLS is less messy now, but is it clean?
Right now I have a couple of ...
8
votes
3answers
98 views
RPSLS refactored to Object Oriented
I wrote a couple reviews for this CR post. In my most recent review, I refactored @Malachi 's code to fit OO design. I'm looking for any advice/hints/criticisms on it.
A Review is welcome for both ...
10
votes
3answers
201 views
RPSLS is less messy now, but is it clean?
This is a follow up to the following questions:
RPSLS Game in C#
Is my coding technique progressing in terms of C# loops?
I haven't made my way to DecideWinner() ...
19
votes
3answers
3k views
Is my coding technique progressing in terms of C# loops?
I have isolated a little bit of code that was causing a small debate between myself and another user. I have taken some of the things that he said and meshed it with the code that was being reviewed ...
9
votes
2answers
100 views
RPSLS yet again
I guess I'm a little late with my entry to this code challenge mentioned here, but I decided the world must need yet another RPSLS implementation to critique.
...
21
votes
4answers
1k views
Ultimate Tic-Tac-Toe in C
Here is my attempt at the UTTT code-challenge (in response to the the Weekend-Challenge Reboot). Here is what I would like critiqued:
I tested the code a few times for bugs, but I may have missed ...
12
votes
2answers
183 views
UltimateTicTacToe - ActionScript Style!
In an effort to complete this month's code challenge, I've started off with the basics. Below I have for review, a class that I can call to create the square/button a user would click to mark a spot ...
11
votes
4answers
557 views
Tictactics implementation
I've tried to take the shortest, simplest path to a C# solution to the Ultimate Tic-Tac-Toe challenge. This implementation plays in the console. I admit the game logic could be hived off into a ...
13
votes
3answers
1k views
Ultimate Tic-Tac-Toe data model
This is another entry for The Ultimate Tic-Tac-Toe review.
My design criteria were:
A DLL which encapsulates the data, i.e. the game state
Don't include the GUI, nor the decision-making ...
10
votes
3answers
377 views
Ultimate Tic-Tac-Toe Challenge
This is my attempt at the Ultimate Tic-Tac-Toe code challenge.
It uses jQuery to build out the game grid and find the states of all the "buttons" (actually ...
9
votes
3answers
163 views
TicTactics GameBoard Logic
This is my take at the current code-challenge, Ultimate Tic-Tac-Toe.
It all started with a CellValue and a BoardPosition:
...
9
votes
1answer
91 views
TicTactics Presentation
This is my take at the current code-challenge, Ultimate Tic-Tac-Toe, at least the presentation part.
As I chose to write a WPF application for my game, and this is my very first time fiddling with a ...
17
votes
3answers
755 views
View for Ultimate Tic-Tac-Toe board
I've put together a board for Ultimate Tic-Tac-Toe (What's that?). This is part of the current code-challenge: Code a Ultimate Tic-Tac-Toe
Resources:
Live demo of my view – For you to see ...
15
votes
5answers
3k views
Tic-tac-toe 'get winner' algorithm
As a first step to attempting the Weekend Challenger Reboot, I decided to first implement a regular 'tic-tac-toe' game and then expand it later to be 'ultimate tic-tac-toe'.
Below is the code for the ...
12
votes
1answer
177 views
Weekend Challenge - Belle's Christmas
My entry for Weekend Challenge #5.
In scope :
Old Skool green on black text adventure
Keyboard handling
A story with 2 mini-quests
2 endings
Virtues ( Hi Ultima ) save the day
Out of scope :
...
10
votes
1answer
368 views
Simple Text Adventure: Cleaning up after the party
This week's Code Review Weekend Challenge is about implementing a simple console game.
Here's my game loop:
...
12
votes
2answers
295 views
Gotta catch 'em all!
This week's challenge is essentially about fetching Json data from the Web, and deserializing it into objects. I don't have much time to devote to this one, so what I have is very basic: it displays ...
12
votes
1answer
274 views
Ruby Sudoku solver
This week's weekend challenge #3 seemed like a great opportunity to learn Ruby! Unfortunately, my workload and looming vacation did not cooperate. :( The puzzle will make forced moves automatically, ...
9
votes
1answer
248 views
Sudoku solver: pencil marks & recursive patience
Here is my attempt at Weekend Challenge #3.
Out of scope:
It only will do 9*9
It will stop at the first solution
Could have been smarter at re-using the cache when recursively calling ...
16
votes
4answers
345 views
SudokuSharp Solver with advanced features
Even though it's the first time I'm writing something this "big", it feels like I know C# quite good. It's been nice to learn LINQ also and I am very impressed by the features, and perhaps I have ...
7
votes
2answers
110 views
Hello Java World ~> Parsing a Sudoku Grid
This is my first, very-very first attempt at java. I haven't started tackling the actual resolution of the sudoku puzzle (not even sure where to start, haven't looked at other weekend-challenge ...
16
votes
2answers
3k views
Sudoku Solver in C
I had this code lying around, so I figured I would submit this as my first attempt at a weekend-challenge. I would prefer if reviews contained suggestions on how to improve the algorithm, but all ...
10
votes
1answer
399 views
Sudoku Week-End Challenge - Brute-Force Recursive solver
This is part of my attempt at the Week-End Challenge #3. The overall problem is larger than will fit in one question. This is a well-contained subset of my larger program.
The goal of this part is to ...
15
votes
2answers
360 views
Sudoku using 'exact cover' solver
1. Introduction
This is a solution to Weekend Challenge #3: a Sudoku solver in Python. It works by translating a Sudoku puzzle into an exact cover problem, and then solving the exact cover problem ...
10
votes
2answers
563 views
Sudoku solver using simple deductions and brute-force guessing
Here's my attempt at Weekend Challenge #3.
Key characteristics of this Python entry are:
The strategy is to alternate between "auto-complete" (making simple deductions such as naked singles and ...
12
votes
1answer
310 views
Weekend Challenge: Ruby Poker Hand Evaluation
I'm late to this weekend challenge (sorry), but since it's all in good fun, I hope that's ok. I'm no poker player, though, so I may have completely overlooked something.
The ...
9
votes
1answer
134 views
12
votes
1answer
202 views
Weekend Challenge - Poker Hand Evaluation
Weekend Challenge #2 - Poker Hand Evaluation
Very early I decided to support the usage of wild jokers, even though I knew that this was going to lead to trouble more work. I also wanted to support ...
6
votes
1answer
330 views
Poker Hand Evaluation - Finding a straight
Weekend Challenge #2 - Poker Hand Evaluation
Finding a straight with wildcards
Because of a size limit on Code Review I have to split my weekly challenge result in two, and here is a part where I ...
8
votes
1answer
148 views
Poker Hand Evaluator, take 2
This is following up on my previous attempt, which was admittedly done fast and not-so-well. This code attempts to allow comparing two poker hands to determine a winner, not only evaluating a given ...
3
votes
2answers
147 views
Poker Hand Evaluator Challenge
This week's review challenge is a poker hand evaluator. I started by enumerating the possible hands:
...
12
votes
3answers
717 views
RPSLS Game in C#
I went with what I know and can use well, not what I know and can't figure the syntax out to make it look good.
so please enjoy the code and prepare to school me (probably in the basics) in C#
...
11
votes
2answers
347 views
Rock Paper Scissors Lizard Spock Revisited
Continuing the spirit of the recent Weekend Challenge, here is a revised version of the RPSLS game.
This is a follow up to my previous submission:
Rock Paper Scissors Lizard Spock as a code-style ...
12
votes
2answers
292 views
Rock-Paper-Scissors-Lizard-Spock challenge in C++
Here's my take at the Rock-Paper-Scissors-Lizard-Spock challenge. The outcomes are as follows:
Scissors cuts paper
paper covers rock
rock crushes lizard
lizard poisons Spock
Spock ...
10
votes
2answers
286 views
Rock-Paper-Scissors-Lizard-Spock Challenge, take 2
This post is following-up on Rock-Paper-Scissors-Lizard-Spock Challenge
I had a gut feeling that I was somehow abusing IComparable<T>, @svick's answer ...
10
votes
2answers
212 views
Another Rock Paper Scissors Lizard Spock implementation
The Challenge
Create an implementation of "Rock - Paper - Scissors - Lizard - Spock".
The rules:
Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes ...
16
votes
4answers
722 views
Rock-Paper-Scissors-Lizard-Spock Challenge
"Scissors cuts paper, paper covers rock,
rock crushes lizard, lizard poisons Spock,
Spock smashes scissors, scissors decapitate lizard,
lizard eats paper, paper ...
11
votes
2answers
585 views
Rock Paper Scissors Lizard Spock as a code-style and challenge
The following is a program that lets a Human play "Rock Paper Scissors Lizard Spock" against the computer... (almost playable at: http://ideone.com/EBDlga)
Note I have posted a follow-up question ...