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

[Open-Source] V-Slot Machine

Started by unstopablekk, 09 March 2013 - 01:36 PM
unstopablekk #1
Posted 09 March 2013 - 02:36 PM
Hello there! Well the title says it all so.. here ya' go!
oh, the're a few things. Works for all computers.. I think.

1. You need to edit some parts or maybe most since it is not made for CC specifically as it was made for lua in general.
2. The sleep function and clear function should work for CC since it has these in the API. If not then you guys can figure it out ;D
3. This is all virtual money (Hence the name v-slot machine), if you'd like it to dispense money then I think you know what to add.
4. This code is completely open source since I have no clue what to do with it… have fun! :D/>
5. Give credit where credit is due, if you wish.
6. Don't tell me whats wrong with the code if you're using it for CC since I didn't make this in a CC emulator, I made this using TouchLua for the iPhone so don't be too harsh… it was made on a tiny screen.

Also, feel free to enhance it. I encourage it.

http://pastebin.com/sbmNZLXW
Spongy141 #2
Posted 10 March 2013 - 05:27 PM
Wow, you wrote this entire program on your iPhone? Dang, I can barely write a password program on my iPhone/iPod.