if(Mouse.isButtonDown(0))
        {
            if((x > 2 + dragAmtX) && (x < 2 + width + dragAmtX) && (y > 60 + dragAmtY) && (y < 60 + height + dragAmtY))
...

Java Draggable Box

by https://www.google.com/accounts/o8/id?id=AItOawmst0sW9xXK8PoImFIqsiW5GmqKEarDFMo, December 23, 2011 11:14, 1 refactoring, tagged with game, box, drag, draggable, mouse, click

Hey.
I've been trying to m...

55502f40dc8b7c769880b10874abc9d0 Talk
module Mastermind
  class Game
    def initialize(messenger)
...

Ruby Mastermind code excerpt

by jsoo, March 25, 2010 21:23, 1 refactoring, tagged with ruby, game, mastermind

Based on the game mastermin...

3b07e03b379d1684591d8df8c848975f Talk
#include <fstream>
using std::ofstream;
#include <time.h>
...

C++ Game of Life

by vodkamilkshake, January 22, 2010 08:29, 3 refactorings, tagged with game, algorithm, C++, cpp, gameoflife, conway

This is an implementation o...

73465ace35a83efec10235c119800304 Talk
public void draw()
	{
		switch(direction)
...

Java Snake Game Logic?

by gmaster1440.myopenid.com, May 25, 2009 02:55, 2 refactorings, tagged with java, game, snake game, snake, logic, timer, pause

I'm having a lot of trouble...

4b25b1e093c50b62cdfb4a84d6d3a21e Talk
<?php
$std = fopen("php://stdin", "r");
echo "TICTACTOE\n\n\n\n";
...

PHP Command-Line TicTacToe

by techietim, March 24, 2008 00:00, 3 refactorings, tagged with php, game, tictactoe

Just wondering if there are...

441c4f02db55ef2cbe96027af7012e01 Talk
class ConnectFourBoard
  AIM = 4 # number of neighbouring tokens to obtain

...

Ruby connect-four

by elise.huard.myopenid.com, January 01, 2008 20:50, No refactoring, tagged with game

You probably know the game ...

F28306cdcd0269dd76f89bc1ef4d9adc Talk