mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2010
Posts: 2
Z
zanthal Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
Z
Joined: Jan 2010
Posts: 2
Hello all,

I've never tried to tackle programming even as allegedly simple as BASIC.

I need all the help I can get to make this game I've detailed below. Coding it is totally over my head. I've got my fingers crossed that someone else will see the potential fun of this IRC game and will help me with it. I'd very much like to learn how to write it up. I've looked into the available resources and without getting a head start from someone in the know, I'm certain it's just going to cook my brain.

I detailed the game process (below). I broke it down into pieces in an attempt to code it myself, self-teaching from guides and resource manuals online.


Any help at all is appreciated.
---------------------------------------------------------



So it all starts when someone in the chat room wants to play a game of Wheel of Fortune. They type in:

!playwof nickofplayer1,nickofplayer2,nickofplayer3,nickofplayer4


The script greets with, "Hello, player1, 2, 3, 4! The Wheel of Fortune game rules and instructions are as follows:
------
Wheel of Fortune IRC game, description and rules:

The IRC game is exactly like the game show on TV, except the scoring is different and there is no wheel to spin. Each player is presented with a phrase, person, place, or thing puzzle to guess letters of and try to solve.
The maximum number of points per round is 100, this being awarded if the puzzle is guessed on the players first turn. Every incorrect guess reduces that possible 100 by 10, and every turn the player chooses not to guess reduces that possible 100 by 1. Thus it's to the advantage of the player to only guess if they feel confident they have the correct answer.

To guess a letter, use !guessletter _

To guess the solution, use !solve ______

To pass your turn, use !pass

To see the score list, use !wofscores
------

(note: the score list will display a list of all players who have ever been recorded as playing, the number of rounds they've participated in, and their total score will be displayed in this format:

Wheel of Fortune all time scores: player1, SCORE# points in #ofROUNDS rounds | player2, SCORE# points in #ofROUNDS rounds | and so on ...)



GAME START:


The script should then ask each player if they're ready to play. If they all reply 'yes' then the game begins.

The script pulls a random word, phrase, name, place, thing, etc from a list entitled 'wof.txt' in the scripts directory. The format in the text file will be:

phrase:OUT OF THE BLUE
place:ON TOP OF THE WORLD
thing:BICYCLE BUILT FOR TWO

... and the list can be added to or changed of course.

(for the example below I'm using the phrase OUT OF THE BLUE)

The script outputs to the chatroom:

"Wheel of Fortune Round ROUND# is about to begin! The phrase is _ _ _ _ _ _ _ _ _ _ _ _ ***good luck*** !"

"Player1, it's your turn, you have one minute to guess a letter, solve the puzzle, or pass your turn, or you will forfeit your turn and 10 points."

The script asks each player in turn to either guess a letter, solve the puzzle, or pass on the puzzle solving attempt. Every turn a player must at least pick a letter, try and guess the answer to the puzzle or pass the

attempt.

(At this point, the script waits for the player to respond. They have 60 seconds before a time limit warning appears that says they have 10 seconds left to make their entry or lose their turn and 10 possible points, and

after that 10 seconds it is carried out)

If Player1 entered:

!guessletter G

the script would output:

"I'm sorry, the letter 'G' is not in the puzzle" and continues to the next player.

If Player1 entered:

!guessletter T

The script would output:

"There are 2 T's !"

"The phrase is _ _ T _ _ T _ _ _ _ _ _ ..."

"Player1, would you like to solve the puzzle? You may solve or pass your turn, you have one minute."

(At this point, the script waits for the player to respond. They have 60 seconds before a time limit warning appears that says they have 10 seconds left to make their entry or lose their turn and 10 possible points, and

after that 10 seconds it is carried out)

Player1 would then respond with either:

!solve insert puzzle guess here

or

!pass


If the guess is correct, the script records all player's names as having participated in 1 round and also adds the winning players score to his/her all time total. The record keeps a running total of players, the # of rounds they've played, and their total score overall. The script then announces to the winning player that the solution is correct, displays the solution, announces the round is over and thanks each of the players for playing by name, announces the winner player by name, and announces his round score and all time score.

If the guess is incorrect, the script announces a loss of 10 possible points for the round, and Player1's current score, and the script moves on to Player2 outputing:

"Player2, the phrase is _ _ T _ _ T _ _ _ _ _ _ ... ***good luck*** !" and the game progresses as above.

If Player1 responds with !noguess then the script announces a loss of 2 possible points for the round and Player1's current score, and the script moves on to Player2 outputing:

"Player2, the phrase is _ _ T _ _ T _ _ _ _ _ _ ... ***good luck*** !" and the game progresses as above.

The round continues in this fashion through the players in the order they were given in the !playwof command, until the puzzle is solved.

It IS possible a player could solve the puzzle and lose points in the round, assuming it was a very difficult puzzle and 10+ rounds and guesses were needed (surely a rare occurance).

It IS possible for all of the letters to be guessed and the solution displayed. For ease of coding I think it is probably best that the player still be required at that point to !solve the puzzle with the proper command, even if they just picked the last letter in it and the solution is being displayed by the script.



The formatting is being removed when I post, but there should be double spaces between the words in the under scores so the players know how many letters are in each word.




Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
While an identical match to your request might not be available, the basics for Wheel of Fortune have been done a number of times.
See here for a list of some that are available.

Joined: Jan 2010
Posts: 2
Z
zanthal Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
Z
Joined: Jan 2010
Posts: 2

Thanks RusselB for the link

I looked at those snippets though and if I'm not mistaken, they are actually based on the Wheel of Fortune you'd see at a casino.

My idea is to make a game that is almost entirely like the Wheel of Fortune game show, with Pat Sajak and Vanna White


Or am I wrong and one of those snippets actually operate like the game show?


Either way it's a start, thanks


Link Copied to Clipboard