This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes why can't some people play my game Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "why can Watch "why can New topic
Author

why can't some people play my game

Ana Suvari
Ranch Hand

Joined: Aug 18, 2009
Posts: 43
I have my game http://blogfriendlyzone.webs.com/wof/WOF.html and i tried to share it with some online friends but some complain that they can't even spin the wheel or they can't enter a consonant (after spinning wheel) . It won't accept their consonant from the keyboard like it should. Is there something i can tell them what to do to get it to work for them? I have a fast computer so i don't know if clicking on the panel should help put the focus on the game and would that do it? I made the game specially for online friends but it's not good if they can't play it.

Instructions

1. Click on link: http://blogfriendlyzone.webs.com/wof/WOF.html

2. Click "Start a New Game" button that is located on the left bottom of the game controls.

A panel of letters appears at the top panel.

All players have 0 amount of money and thus cannot buy a vowel.

Player 1 must clicks on "Spin The Wheel".

When the wheels stops, the result appears in the right black square border of the color wheel.

If the result is BRT, the player loses all his money. The game advances to the next player.

If the result is LT, the player loses his turn and the game advances to the next player.

If the result is a number, eg. 100, the player must enter a consonant. If the consonant is in the phrase, the player must enter a consonant that appears in the phrase.

For every consonant found in the phrase, the player collects the number of letters found in the phrase multiplied by result number.

If the consonant is not in the phrase, the game advances to the next player. Also, if you enter a consonant that is already revealed on the phrase panel, you get 0 and the play advances to the next player.


To Buy a Vowel:

The player must have at least $50 to buy a vowel.
If the vowel is in the phrase, the letter is revealed. If the vowel is not in the phrase, the game advances to the next player.

A vowel is 'a', 'e', 'o', 'i', 'u'.


Solve The Puzzle

When more letters are revealed and the player wishes to solve the puzzle,
the player must first click on the "Solve The Puzzle" button. Then she/he must enter the exact phrase into the input text below. He/she must include punctuations and a single space between each word in the phrase. Capitals are not necessary.

If the user's answer is correct, the phrase panel reveals the phrase and the player gets to keep all his money while the rest of the players lose their money for that round.

If the user input is not correct, the game advances to the next player.


Show Accumulated Points

Clicking on "Show Accumulated Points" shows the accumulated scores in the message Display box for all the players accumulated so far currently.

There are up to six rounds only.
Nitish Bangera
Ranch Hand

Joined: Jul 15, 2009
Posts: 537

Great game but i could not enter the consonant.


[ SCJP 6.0 - 90% ] , JSP, Servlets and Learning EJB.
Try out the programs using a TextEditor. Textpad - Java 6 api
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
I'm getting a class version error using Java 5, so I'm guessing that the code is compiled for Java 6. That limits the potential audience to those using Java 6 in their browser. According to some informal statistics I've seen that is less than 70% of all users, so I'd expect that quite a few people can't use it.

It sounds as if that's a different problem than what you're describing, though. Do the people having problems see exceptions in the Java Console?


Ping & DNS - updated with new look and Ping home screen widget
Ana Suvari
Ranch Hand

Joined: Aug 18, 2009
Posts: 43
Hi all. I am not sure what error they get. However, i think i fixed the problem. Can someone try my game again and let me know the result? You're suppose to click Start - then click Spin the Wheel - then enter consonant from keyboard. If it accepted your consonant, The "Enter a Consonant" at the message box should go away and be replaced by message saying something like, e.g. N: 3 count .

Please check for me. I would really appreciate some feedback. Thanks in advance.

Ana
Ramses Butarbutar
Ranch Hand

Joined: Jun 16, 2009
Posts: 52
Ana Suvari wrote: Can someone try my game again and let me know the result?
Please check for me. I would really appreciate some feedback. Thanks in advance.
Ana


Hi Ana , when i follow your instruction, i got this message when i open the site..


seem , it's cause by different class version. just like sheriff said before..
I'm using java version 1.6 update 16. So i can't get into your game...


At the center of non-violence stands the principle of love
.... Martin Luther King, Jr.
Ana Suvari
Ranch Hand

Joined: Aug 18, 2009
Posts: 43
But i just compiled it using javac -target 1.5 *.java

That should have compiled it for version 5.
Narendira Sarma
Greenhorn

Joined: Nov 14, 2008
Posts: 18
I tried playing with IE 8 and Google Chrome...

Works fine for me.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
"Incompatible magic value" does not indicate a JRE version mismatch. It sounds more like the class file got corrupted somewhere along the way.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
Where would one enter the consonant? None of the text fields are editable.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3775

Ulf Dittmer wrote:Where would one enter the consonant? None of the text fields are editable.


Same here . Everything else disabled.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Narendira Sarma
Greenhorn

Joined: Nov 14, 2008
Posts: 18
I guess there is a KeyListener for the whole app. Pressing an alphabet key anywhere in the window is registered.
Ana Suvari
Ranch Hand

Joined: Aug 18, 2009
Posts: 43

I guess there is a KeyListener for the whole app. Pressing an alphabet key anywhere in the window is registered.


I am getting with this KeyListener. It's accepting a character even before I addKeyListener( )!!!.

I put a print statement at my addKeyListener( ) and removeKeyListener( ). I only call addKeyListener when the wheel stops spinning and after the it displays message "Enter a consonant" but somehow user can enter a consonant during spin!!! After spin is done, it takes that consonant as the user input.

How do i clear the keyTyped!!!
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 1977
    
    7

Nice game. When I try it, I'm able to enter a consonant for player 1 then can't for player 2 - both got a number. I'm using JDK 6u16 and IE 8


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why can't some people play my game
 
Similar Threads
Can someone test my game again?
Puzzle....
The best puzzle(IIM Indore)
Puzzle
SoDuko puzzle