The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled Java Code
Posted by: exploreEveryPossibility( ) | November 30, 2010 @ 3:45pm
Java Code
[
Download
]
exploreAllPossibilities( ) { QueueClass commandQueue = new QueueClass( ); commandQueue.initializeQueue( ); while( !roomStack.isEmpty( ) ) { int iterator = 0; IntElement converter = new IntElement( ); while( IntElement( roomCommands[roomStack.top( )][iterator] != 0 ) { converter.setNum( ( roomCommands[roomStack.top( )][iterator] ) ); commandQueue.addQueue( converter ); iterator++; } roomStack.pop( ); iterator = 0; while( !commandQueue.isEmpty( ) ) { takeAction( commandQueue.front( ) ); commandQueue.deleteQueue( ); } commandQueue.initializeQueue( ); } }
Syntax Highlighting
[
Open in new window
]
Author Comments
prints out every action the player can possibly take.
Rating
4.25 / 8
28 Votes
http://codebin.yi.org/988
page generated in 0.01 seconds