American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – USACO – Gamas

January 16 @ 6:00 pm - 7:00 pm

Today We Did
  1. We learned how to create palindrome ignore space.
  2. We learned how to clone and delete a character in the middle.
Homework
  1. Create word guessing game. This is very similar to hangman, but without the hangman human sticky figure. To draw heart symbol, you need to do this.
    1. String healthSymbol = "\u2665"; // unicode heart symbol.
      System.out.println(healthSymbol);
  2. This is how the game goes
    1. WORD GUESSING GAME
      
      _ _ _ _ _ _ 
      ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ 
      Enter a letter or the whole world: a
      
      _ _ a _ _ _ 
      ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ 
      Enter a letter or the whole world: b
      
      _ _ a _ _ _ 
      ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ 
      Enter a letter or the whole world: b
      
      _ _ a _ _ _ 
      ♥ ♥ ♥ ♥ ♥ ♥ ♥ 
      Enter a letter or the whole world: d
      
      d _ a _ _ _ 
      ♥ ♥ ♥ ♥ ♥ ♥ ♥ 
      Enter a letter or the whole world: r
      
      d r a _ _ _ 
      ♥ ♥ ♥ ♥ ♥ ♥ ♥ 
      Enter a letter or the whole world: g
      
      d r a g _ _ 
      ♥ ♥ ♥ ♥ ♥ ♥ ♥ 
      Enter a letter or the whole world: o
      
      d r a g o _ 
      ♥ ♥ ♥ ♥ ♥ ♥ ♥ 
      Enter a letter or the whole world: x
      
      d r a g o _ 
      ♥ ♥ ♥ ♥ ♥ ♥ 
      Enter a letter or the whole world: x
      
      d r a g o _ 
      ♥ ♥ ♥ ♥ ♥ 
      Enter a letter or the whole world: x
      
      d r a g o _ 
      ♥ ♥ ♥ ♥ 
      Enter a letter or the whole world: x
      
      d r a g o _ 
      ♥ ♥ ♥ 
      Enter a letter or the whole world: x
      
      d r a g o _ 
      ♥ ♥ 
      Enter a letter or the whole world: x
      
      d r a g o _ 
      ♥ 
      Enter a letter or the whole world: x
      Sorry you lost the game. The secret word is 'dragon'.

Details

Date:
January 16
Time:
6:00 pm - 7:00 pm
Verified by MonsterInsights