Results 1 to 1 of 1
  1. #1
    ss1 is offline Member
    Join Date
    Aug 2011
    Rep Power

    Default need help creating a shell game

    So we're supposed to create a game where the user is supposed to guess which shell a ball is under. If they're right they win, or they lose. Here is my code so far:

    Java Code:
    import java.util.Scanner;
    public class Project3 {
    	public static void main(String[] args) {
    		Scanner in = new Scanner(;
    		System.out.println("What's your name?");
    		String name =;
    		System.out.println("Hi " + name);
    		System.out.println("How much money do you have?");
    		int money = in.nextInt();
    		if (money>0) {
    			System.out.println("That's a good amount. Let's do this.");
    			System.out.println("Go away deadbeat! You're not playing if you don't have money!");

    The problem I have right now is drawing the shells. I want it to look like this, but it's going horizontal.

    / \
    / o \

    *it's not a perfect shell.. but hopefully you can see the right position of how it's supposed to be.

    The one with the "o" is the shell which the ball is under. How do I do that?
    Last edited by ss1; 09-20-2011 at 12:14 AM.

Similar Threads

  1. Creating a game of blackjack
    By adjit in forum New To Java
    Replies: 3
    Last Post: 04-29-2011, 02:14 PM
  2. Creating a flying game
    By george222 in forum Java Gaming
    Replies: 1
    Last Post: 02-11-2011, 11:21 AM
  3. Help creating a Masterminds game.
    By viper98 in forum New To Java
    Replies: 4
    Last Post: 11-09-2009, 05:13 AM
  4. need help creating my Tic Tac Toe game!
    By bobmasta5 in forum New To Java
    Replies: 6
    Last Post: 12-09-2008, 06:45 PM
  5. Replies: 0
    Last Post: 07-25-2008, 02:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts