PDA

View Full Version : The Guessing Game : Version 1.2...


Chris M
07-03-2002, 10:00 PM
OK!

Its Integrated now...

Im attaching 3 .zip files...

The first one conatins instructions for a Fresh Install...

The second contains instructions for an upgrade from my previous version...

A big thanks to both neo (for helping me get the random function working), and g-force2k2, for helping me sort out my template problem...

The third .zip file contains screenshots...

This only contains instructions for the Guessing Game Word Version...

The Number version will come as soon as I sort out a bug with it...

Satan

Chris M
07-04-2002, 01:21 PM
This is for people who want to update from the previous version...

Satan

Chris M
07-04-2002, 01:22 PM
Here are the screenshots...

Hopefully I dont have to uploaded them singularly:)

Satan

Chris M
07-04-2002, 01:24 PM
If you want to see a working version, goto :

http://www.thelyceum.org/forum/guessword.php

Satan

Brad
07-04-2002, 02:02 PM
ill look into installing this once i finish my new templates ;)

Chris M
07-04-2002, 02:03 PM
Coolies:)

Satan

Logician
07-04-2002, 03:58 PM
You take me back in time: Guessing game was my first computer program I have ever coded. Let me see, himm 17 years ago with my beloved Commodore 64..

Simple code but every complicated thing such as a coding experience begins with simple steps so I wish you good luck in coding world. :)

By the way, AFAIK computer should respond as "my number is below/above your guess" in guessing game, shouldnt it? Replying the user as "Incorrect Guess" is neither helpful nor gives any hint to the user to make a second better guess. Adding such a feature will help you master "if" structure too. ;)

Logician

ZiRu$
07-04-2002, 04:48 PM
can members make them too?

firewars
07-04-2002, 05:46 PM
Originally posted by hellsatan
If you want to see a working version, goto :

http://www.thelyceum.org/forum/guessword.php

Satan

That board is more than offending.

Boofo
07-04-2002, 06:06 PM
Chris,

On the demo board it always says "This was try number : 1" after each guess. It never increments. :)

Marc Hanlon
07-04-2002, 06:41 PM
Originally posted by Logician
By the way, AFAIK computer should respond as "my number is below/above your guess" in guessing game, shouldnt it? Replying the user as "Incorrect Guess" is neither helpful nor gives any hint to the user to make a second better guess.

Yeah, this thing seems very stupid - there are billions of billions of possibilities. Even with numbers, it's obvious how many possibilities there are.

The only way I can think of actually winning is to write my own PHP script with uses a brute force cracker to keep guessing until it gets it right...

Marc.

Boofo
07-04-2002, 07:43 PM
Stupid? No. Billions and billions of possibilites? I highly doubt it. But that is the way it is supposed to be. It's a guessing game. Just like hangman in the old days. :)

Originally posted by Marc Hanlon


Yeah, this thing seems very stupid - there are billions of billions of possibilities. Even with numbers, it's obvious how many possibilities there are.

The only way I can think of actually winning is to write my own PHP script with uses a brute force cracker to keep guessing until it gets it right...

Marc.

Chris M
07-04-2002, 07:54 PM
This is only a word version, which you tell which words are chosen...

Logican - The number version has the feature to tell you whether you are guessing too high or too low, but the word version cant do that for obvious reasons - a Word cannot increase or decrease in a numerical value...

@Boofo - Really? That is extraordinary...On my test forum it appeared to work...I shall test that further...I never stopped past one guess on the live forums...

@Hot Dogg - I am not sure I understand the question??

Satan

Chris M
07-04-2002, 07:59 PM
@Marc - It doesnt make up random numbers...I made it so that it doesnt...

The number version (released after I sort out a silly little bug I keep getting), will be programable with as many numbers as you want to be able to guess...

All you have to do is edit the $num array, by adding more words to it (in the word version), and the $number array by adding more numbers to it (in the soon to be released number version)...

And before you say that you could guess the numbers you input each time, dont try it:) The more numbers you put in, the less chance you actually have of getting it right - It chooses a word or number at random every time you guess (depending on which version you have), so it is very unlikely that with 50 words, you will guess it straight away simply because you know the words you put in...

The next version, 1.3, will have a "Clue" feature, which, if all goes well, will be able to be input from the admin cp:) That should help guessers get to the guessable word more easily...

Satan

MrLister
07-04-2002, 08:08 PM
Congratulations!!!
Congratulations Unregistered! You guessed correctly!

on my second try :)

Marc Hanlon
07-04-2002, 08:11 PM
Originally posted by Boofo
Stupid? No. Billions and billions of possibilites? I highly doubt it. But that is the way it is supposed to be. It's a guessing game. Just like hangman in the old days. :)


Okay, when I open this page - I see a blank box with a space to fill in my guess - I see no clues. This text can supposedly be any length at all, therefore billions and billions is a possibility (if you don't understand probability then you won't follow that).

Also, with hangman (at least the version I play) - you know three facts: 1) how many letters are in it and 2) what the subject of the word is (i.e. film) 3) everytime you guess, you guess a letter, if that letter doesn't appear in the text you are told.

I haven't bothered to read the code, I'm going on what I see at the demo.

Marc.

Marc Hanlon
07-04-2002, 08:41 PM
Suggestion:

Why not use the function similar_text() to calculate the similarity percentage between the guess and the word, and have the word stay static for their guess, it's not likely to make the game easy but at least gives them some indication as to how close their getting.

Edit: If you wanted to go even further, you could use the soundex() function to further improve this.

Marc.

Chris M
07-04-2002, 09:02 PM
All in due time Marc:)

Like I said - It cant bring in a number that you havent coded into it...

It comes with 5 numbers as standard, and the guessword with 5 words...There are no clues for the guessword, cos simply you cant tell people if they are too high or too low for a word!

On the number version, there is that function...

I was trying to figure out how to make it static...Maybe I shall experiment and get 1.3 out with a Static version, until they guess correctly...

Satan

Chris M
07-04-2002, 09:05 PM
Actually, I never thought of a similarity percentage...

Youve given me an idea:)

Thanks...

Satan

Velocd
07-05-2002, 03:25 AM
I'm flabbergasted by this truely amazing hack. When is version 1.3 coming?? :)

Chris M
07-05-2002, 07:01 AM
As soon as I learn how to change the value of the array via the Admin CP, or as soon as I get a similarity percentage and static guess thingy...Whichever is easier comes first:)

Satan

BigJohnson
07-05-2002, 12:06 PM
That would be kool if HINTs could be added into the thing. Like say the word was HOT and someone says Cool. The hint would be JUST THE OPPOSITE hehe. but i think that might be pretty hard to do so just forgewt i said anything haha. Great hack.

Chris M
07-05-2002, 07:07 PM
I am adding a Hints system...

This is what I hope to be able to achieve in 1.3 :

Add Words and Clues to be guessed
Allow users to add their own Words and Clues
Allow Moderation of new words & clues

Satan

Velocd
07-06-2002, 12:28 AM
Sounds good, you might as well make hangman ;)

Velocd
07-06-2002, 12:35 AM
That forum you have hellsatan is sick and twisted, it just gave me a totally different impression about what you're like. Didn't know any members here hosted a forum like that :angry:

Chris M
07-06-2002, 11:59 AM
Its not mine...

Trust me...I am not like the majority there...

Im only the Webmaster...

Satan

flame
07-10-2002, 11:44 PM
Now heres wot would make this hack even better

How about Intergrating the game into Lesane's Store. Members can use their points per game and if they guess correctly win x amounts of points back?

Only if anyone has time of course

Flame

flame
07-12-2002, 09:11 PM
Dont worry about Last request I managed to intergrate the code into Store.php myself :-)

Works well thx the great scripts and thx Lesane for Store

Flame

Chris M
07-18-2002, 12:03 PM
Whoa flame!

Could you post the code so that others can benefit? I dont use the Store, so I cant benefit from it, but others would love it!

Satan

proxyMX
07-28-2002, 01:14 AM
Is this hack integrated with lesanes Store? That wpould go great alongside his lottery hack

Onthrax
08-26-2002, 10:24 AM
I'm gonna try it out.. cheers :)