Scratchbook

Das Leben ist immer anders als die Realität.

Hashrace!

Claude, 6. März 2005, 00:08 Uhr

Warning: Use of undefined constant ri_rand_compare - assumed 'ri_rand_compare' (this will throw an Error in a future version of PHP) in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/random-image-widget/random_image.php on line 129 Warning: Use of undefined constant ri_rand_compare - assumed 'ri_rand_compare' (this will throw an Error in a future version of PHP) in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/random-image-widget/random_image.php on line 130 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 700 Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 707 Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 700 Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 707

387.jpg

Darf ich vorstellen: Hashrace, mein erstes PHP-Game! Kurzweiliges, schnelles Gameplay, Multiplayer (natürlich!), und deshalb ein auf Geschwindigkeit optimiertes, schlichtes Design.

Das Prinzip:
Mehrere Spieler klicken auf zufallsgenerierte Zahlen. Derjenige, bei dem das # (Hash-Zeichen) zuerst rechts ankommt, hat gewonnen. Klingt simpel – macht aber tierisch Spass!

Anleitung:
Zuerst muss man mal joinen – ganz einfach per Knopfdruck. Die Session-Daten werden 1:1 vom Weblog übernommen – das setzt natürlich voraus, dass man hier auch eingeloggt ist. Ist noch kein Game offen, kommt man auf den Titelbildschirm (Bild), auf dem man die Maximalpunktzahl festlegen kann. Je grösser, desto länger dauert das Spiel.
Sind alle Spieler bereit, klickt der Gamemaster (einfach derjenige, der das Spiel eröffnet hat) auf „Start Game“.
Jetzt wird bei allen eine Zahlenmatrix eingeblendet. Klickt auf die höchsten Zahlen! Wer zuerst das Limit überschritten hat, gewinnt! Am Schluss sollte der Gamemaster unbedingt noch auf „Cancel Game“ klicken, damit das Spiel frei für die nächste Runde wird. Ich weiss, nicht besonders schlau gelöst, wenn das nämlich vergessen wird, bleibt das Spiel ewig in der Highscore-Liste hängen… Muss ich mir noch was einfallen lassen.

Besonderheiten:
Anti-Cheat Technologie… Wie ihr oben in der Browserleiste seht, werden die angeklickten Zahlen per z= übergeben. Tja, wer jetzt auf die Idee kommt, bei einer hohen Zahl einfach nur Refresh zu drücken, hat sich geschnitten. Es wird nämlich noch checksum= übergeben 😉 Wird ein Refresh erkannt, werden 1000 Punkte abgezogen…
Funktionsweise: Prüfsumme, bestehend aus der Zahl und einer immer wieder zufällig generierten Runden-ID. Das ganze wird natürlich in einen MD5 Hash gepackt – mein Markenzeichen.

Ausblick:
Zuerst mal: Das ganze hat natürlich noch viele kleine Bugs. Deshalb auch nur Version 0.1
Als Idee hätte ich schon ein Mod: Seilziehen! Das # ist in der Mitte, und die Spieler haben die Wahl zwischen zwei Teams. Beim klicken wandert das # in die entsprechende Richtung.

Ach ja, bevor ich es vergesse; hier könnt ihr das ganze zocken:

[Link]

UND NUN VIEL SPASS!

LU-HO Poke

Jo, ist noch ein lustiges Spiel.
Man muss ich einfach eine gute technick aneignen, dann Gewinnt man schon^^

Ich habe aber im vorherigen Spiel ein zweites mal auf eine Zahl geklikt, da es mir zulangsam geladen hatte.
Und was ist natürlich passiert => -1000.
Aber da bin ich wohl selbst schuld, hätte etwas mehr Gedult haben sollen.
Ich habe ja trozdem noch gewonnen^^

Longneck

hehe, freut mich das es dir gefällt! tja, ist so eine sache mit den ladezeiten. doch mehr sorgen macht mir, wenn der gamemaster vergisst auf „cancel game“ zu klicken. dann hängt das spiel einfach bei den highscores.

Lülü

jäjo, gäll claude, mir hends au scho zoggt

UrBaN 4102

ich ha e paar fehler gfunde
===> bug report

Warning: count(): Parameter must be an array or an object that implements Countable in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/themes/scratchbook/navigation_bar_bottom.php on line 1