if(Mouse.isButtonDown(0))
{
if((x > 2 + dragAmtX) && (x < 2 + width + dragAmtX) && (y > 60 + dragAmtY) && (y < 60 + height + dragAmtY))
...
Java Draggable Box
module Mastermind
class Game
def initialize(messenger)
...
Ruby Mastermind code excerpt
Based on the game mastermin...
#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...
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...
<?php
$std = fopen("php://stdin", "r");
echo "TICTACTOE\n\n\n\n";
...
PHP Command-Line TicTacToe
Just wondering if there are...
class ConnectFourBoard AIM = 4 # number of neighbouring tokens to obtain ...
Ruby connect-four
You probably know the game ...
Hey.
I've been trying to m...