Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

java project

Jstorm1000
Jstorm1000 


an array based implementation Attachments Tags Clarifications

Answers

advance pay

sudheer488
sudheer488 



advance pay Attachments
Screenshots
Purchase Answer

Program

sudheer488
sudheer488 



Program Attachments
gameboard.rar (61 K) Download












Preview

Preview
File file = null; int returnVal; chooser.setFileFilter(lifeFilter); returnVal = chooser.showOpenDialog(null); if (returnVal == JFileChooser.APPROVE_OPTION) { file = chooser.getSelectedFile(); System.out.println("You chose to open the file: "+ file.getName()+"."); } else System.out.println("No file selected."); return file; } public File putFile() { File file = null; int returnVal; chooser.setFileFilter(lifeFilter); returnVal = chooser.showSaveDialog(null); if (returnVal

Preview
Color.BLUE)); setOpaque(true); gridImage511_By_511 = Toolkit.getDefaultToolkit().getImage(getClass().getResource("gameGrid.gif")); this.setCursor(new Cursor(Cursor.CROSSHAIR_CURSOR)); } public Dimension getPreferredSize() { return preferredSize; } protected void paintComponent(Graphics g) { if (isOpaque()) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); } g.drawImage(gridImage511_By_511,0,0, this); g.setColor(Color.BLUE); for (int row = 1; row <= board

Preview

Preview
playGameThread = null; protected boolean gameStopped = true; protected int gameSpeed = 500; public GameGUI(GameInterface game, boolean[][] map) { this.game = game; board = new GameBoard(map); setContentPane(makeContentPane()); pack(); setVisible(true); } public Container makeContentPane() { Color birthColor = new Color(160, 160, 222); Color survivalColor = new Color(192, 192, 255); Color lightBlue

Preview
be vivified in the next generation public final int SURV_NBR_COUNTS_2 = 2; // The neighbor counts that allow a live public final int SURV_NBR_COUNTS_3 = 3; // cell to survive to the next generation public final int MAX_ROWS = 50; // The maxium number of grid rows

Preview
Your name here !!! * * SID: Your new SID starting with "00" * * Date: Your submission date * ***********************************************************/ /** * CIS 181 Array Based Implementation of Conway's Game Of Life * The game of life class: GameOfLife.java * * @author Haiping Xu * Created on October 25, 2008

Screenshots
Screenshot
Screenshot
Purchase Answer