Toribash
Alpha alpha Hangman.
The bot guesses random letters but probably no longer guesses the same letter twice or more still.
Also it's word it always from the animal list so, ye.
go find bugs or something
http://www.filedropper.com/showdownload.php/hangman_8
EXTRACT IT TO YOUR DESKTOP.
Sacraficed portability to make use of the windows argv[] thing in order to make the file path relative. Also this allowed me to use Sleep();.

Release 4: case sensitivity no longer a problem
Release 7: bot should no longer guess repeat letters
Release 8: added difficulty (only effects the amount of guesses you're allowed as of now)

The source is an unplanned abomination. Works though.
http://pastebin.com/sjh0vUv1
Last edited by Fear; Aug 15, 2013 at 09:50 PM.
This simulates ascii sand falling in a grid. Sand is a '.', spaces are just empty space, and '#' is a rock. Rocks don't fall dumbo.
I saw this as an [Easy] challenge on reddit, but all the solutions people were posting used various algorithm libraries and stuff. w/e

yes



This isn't really anything special, but I like how it all works and how the errors are handled (actually I took out grid boundaries for now, that's why catch case 1 is redundant right now). If you're wondering what the mystery function converttoint does, it's something I made and put in my own personal header. It's just this:

converttoint()

Last edited by Fear; Mar 31, 2014 at 08:46 AM.
This is the first version of something I decided to make... it's kinda like a gravity simulator or something. You'll see what I mean (maybe) if you run it.
Currently it's early days because the way the points are moved is by how many other points are above/below and left/right to them. This means that systems usually end up in infinite orbits currently.
Tomorrow I'll change it so the attraction is a function of their mass. You can already see I'm setting up for it.

As usual, if there's an error somehow you should tell me.

By the way, if anyone can score a 20 or higher I'll give them something. Because that's pretty hard.

MAXIMUM SPAGHETTI



pastebin

Hopefully I included everything.

Oh by the way I'm fairly sure the try/throw/catch methods in main are messed up right now, those will also be fixed.
Last edited by Fear; Apr 3, 2014 at 01:32 AM.
I have a suggestion for sand. Make the particles move left or right if the one below doesn't have anything to the left or right.

Gravity is ambitious. I would think about trying to keep the code that controls behavior completely separate from the stuff that displays it so that you can easily switch how you're rendering.

Here is something to try for timing:

clock_t start = clock();
while(((float)clock()-(float)start)/CLOCKS_PER_SEC < .1)
{
//do nothing
}

This "does nothing" for a tenth of a second every "frame" although I believe while loops like that still use as much processor power as possible, but we don't care about that right?
I made terminal CGOL. It has flicker on Windows though. Apparently you can't attach and exe.
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life

cgol

That's pretty awesome RBB.
Trying my hand at Perl, just wrote a quick thing to count up the number of marks in various past papers in my Past_Papers folder (Ubuntu).
It's looking for a string of digits between ~( and ) by the way.

First try.

Last edited by Fear; Apr 6, 2014 at 06:38 PM.
Okay Perl sucks so I'm doing C# instead. I like this language... it's weird not using streams all the time though.
I made ultimate tic tac toe. It could be made shorter but fuck my life I can't be bothered.
I'll put an exe up tomorrow or something or maybe now idk.

C#


I think C# might be Windows specific so I'm sorry Unix people.
Pastebin.
https://www.dropbox.com/s/90i9983uul...oints.zip?dl=0
https://www.dropbox.com/s/lv5dr2trlx...201.1.zip?dl=0
https://www.dropbox.com/s/gdmb4iv607...01.11.zip?dl=0
https://www.dropbox.com/s/w9a0drd712...201.2.zip?dl=0
https://www.dropbox.com/s/yyth7shoa8...201.3.zip?dl=0
https://www.dropbox.com/s/ifl3dx5bvq...01.31.zip?dl=0
https://www.dropbox.com/s/rkk6ji2bs3...201.4.zip?dl=0 New version!
needs testing

1.0:
Added:
-Customizable velocities
-Save function
-Load function
-Watermark thing
Fixed:
-Points were previously accelerating toward the top left of other points rather than the middle, only noticeable when size difference is significant.

1.1:
Added:
-'supernovas'
-'black holes'

1.11:
Added:
-supernovas and black holes are now optional through checkboxes on the config window.
Changed:
-supernova mass threshold increased to 200000000000
-supernovas now have a probability of occurring in a star with sufficient mass. This probability increases with density and mass.
-black holes now have a white outline

1.2:
Added:
-Finally added torus wrapping!
Changed:
-Sim window size now scales to your screen.
-Default grid bounds altered to reflect sim window dimensions (better physics)

1.3:
Added:
-New shiny glowy effects!
-You can now click on a point to track it.
Changed:
Save and Load features now copy all grid information (minus glow effects).
Fixed:
-Points are now drawn with centres on their real position!
-Black hole outlines correctly drawn.

1.31:
Changed:
-Glow effect is now prettier.

1.4
Added:
-Supernovas now flash on detonation
-Track points with right click
-Pause by left clicking anywhere, unpause with right click.
Fixed:
-Point accelerations were being modified in an unintended way, now resolved.
-Torus wrapping now mathematically sound and working properly!
Last edited by Fear; Sep 10, 2014 at 08:41 PM.