Intro to FRC Programming - Romi
  • INTRODUCTION
    • Overview
    • Important Links
  • 💽Setup
    • Setting up the Romi's Software
    • Downloading Essential Tools
    • APCS vs FRC
  • How To Code in VSC
    • VSC- Intro
    • A Tour Through VSC
    • Creating a Regular Java Project
  • Intro to Java
    • What is Java?
    • Beginning Steps
    • 🟩Fundimentals of Java
      • Variables
      • Operations
      • Methods
      • Comments
      • If Statements and Conditions
      • Boolean Zen
      • Loops
      • Challenge- Create a Box House
    • 🟨Advanced Concepts
      • Objects
      • Scanners
      • Null Objects
      • Arrays
      • Errors
      • For-Each Loops
    • 🟥Object Oriented Programming
      • Basics of OOP
      • Instance Classes
      • Static Classes
  • 🕑Romi Curriculum- Timed Base
    • Romi Curriculum- Introduction
    • Creating a WPILIB Project
    • Running Your Code
    • The Robot Class
    • Subsystems
      • RomiDrivetrain
    • Cool stuff i will rename this category later
      • Spark Motors
      • PIDs
      • External Controllers
      • Encoders
  • 🖥️Romi Curriculum- Command Based
    • Command Based Code
    • RobotContainer
    • Commands
    • CommandScheduler
  • UNRELATED IMPORTANT CODING KNOWLEDGE
    • Constants
  • SAMPLE CODE
    • Tank Drive Example
      • RobotContainer
      • TankDriveSubsystem
      • MoveRobotCommand
    • Worktop Systems Sample Java Code
      • Belt Elevator Sample Code
      • Rotating Arm Sample Code
Powered by GitBook
On this page
  1. Intro to Java
  2. Fundimentals of Java

Challenge- Create a Box House

PreviousLoopsNextAdvanced Concepts

Last updated 2 months ago

If you've played Terraria, you might have an idea of what I'm talking about.

The infamous Box House is just a wooden box with a torch, a door, a table, and a chair. For this challenge, you'll be creating one of them yourself!

Here's a reference image.

Here's an example of a Box House you can create:

+------------------------+
I                        I
I *                      I
I/                       I
I   ______     |         |
I   |    |  ___|         |
I   |    |  |  |         |
+------------------------+

Yes— this doesn't look easy to create with just loops. Here are some details that you'll want to know.

  • System.out.print() works the exact same as System.out.println() except it doesn't create a new line.

Advanced Challenge— make the house scalable. That means you can make custom dimensions.

🟩