The other day I was tutoring a freshman programmer program his first minesweeper text game in C++. Here is the resulting code. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 [...]
Posts Tagged ‘Game’
TicTacToe – C (procedural style)
Posted by kenny on July 19th, 2011
This is a simple version of TicTacToe written in C. I wrote this primarily to help a friend of mine. It has virtually no error checking (primarily in regards to the scanf functions, so don’t mess up while inputting!) #include <stdio.h> char board[3][3]; char turn = ‘X’; void init(char board[3][3]); void draw(char [...]
3D Cube Engine – Java
Posted by kenny on June 27th, 2009
3x3x3 Y – Increase dimensions. i.e. 4x4x4 -> 5x5x5 (not that if solid mode is true, then it will render slower Arrows – Translate the cubes across the screen If you’re only interested in the Transformation algorithms, check the below link: Graph4D – demonstrates methods and actual source code for rotating a 4D vector. Graph3D [...]

Posted in
Tags:

