[Design] Pentris

Board.java

This class will extend JPanel and will be used to manage blocks in pentris board. Each block will be made by JButton. Also, this class will receive two integer variables to set the size of the board.

For “Only Tetris” mode, the board size will be 10*20.

For “Tetris+Pentris” or “Pentris” mode, the board size will be 20*20 because it’s much harder.

Piece.java

A model class for every piece.

ModeChooser.java

A class to choose modes (“Only Tetris,” “Tetris + Pentris,” “Only Pentris”)

Pentris.java

A class to manage the whole game.

This class should include Timer, Board.java, TetrisPieces.java, PentrisPieces.java, Level Option

**Other classes/functions will be added in future if necessary

Advertisements

About Wonjohn Choi
Hello, I am a software developer Wonjohn Choi. I live in Mississauga, Ontario, Canada and study at a school called St. Francis Xavier Secondary School. My core interests include Math, Computer Science, and Engineering. Thank you.

One Response to [Design] Pentris

  1. If you’d like some inspiration, here’s my implementation of Pentris (it’s open source): http://code.google.com/p/pentris/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: