This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
RaiuPlays's profile picture

BingoCraft by theTANCO

Started by RaiuPlays, 11 April 2015 - 07:09 PM
RaiuPlays #1
Posted 11 April 2015 - 09:09 PM
So, I've started working on a ton of different projects that I haven't finished yet, but this is the first one I have finished. It's bingo in ComputerCraft!

http://pastebin.com/9GMhR0tH

INSTALLING THE PROGRAM: At the end of a game, if you press the space bar, it will restart the game and there is a second file to do this. For this to work properly and set it up easily, I'd recommend typing "pastebin run uBCZM6h9" into the terminal to download the game files in the correct places with the correct names.

This game can be either 1 player playing against an AI, or 2 players playing against each other, which can be selected by using the up or down arrow keys.
Spoiler

As one would expect, each board consists of five columns and five rows of random numbers. A random number is called above the boards. If you have that number you can click on it on your board to mark it, or you can click on the free space in the middle at any point during the game. If you do not have the number you need, click the pass button under your board.
Spoiler

At the end of a game you can see win/loss statistics for both 1 player mode and 2 player mode.
Spoiler

I hope you enjoy! I tested this multiple times to make sure everything works properly, but let me know if you find any bugs, or if you can think of any way this could be improved. :)/>

Edit: Probably should have made it clearer about how to install the program. So I fixed that.

Edit 2: Fixed a bug where you could pass your turn by clicking the free space after it had already been clicked.
Edited on 20 April 2015 - 05:50 AM
Creator #2
Posted 11 April 2015 - 09:42 PM
This is real nice. Sadly the AI beat me. Only this time…
ItsRodrick #3
Posted 11 April 2015 - 11:47 PM
I won! But the game crashed.

Spoiler

Edit: Computer won (¬¬) and it crashed again:
Spoiler
And same error…

EDIT 2: Gotcha. I did pastebin get P4pinVwn bingo, so the program couldn't write into the dir bingo/stats, because bingo was already a program.
AFTER, I saw that there was a 'installer'.
Edited on 11 April 2015 - 09:58 PM
ExplosiveFerrets #4
Posted 04 November 2015 - 03:02 PM
Fun! The AI got me…

Suggestions:
  • HTTP? That would be cool!
  • Maybe an menu.