Skip to content

Commit

Permalink
updating assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
esaule committed Oct 1, 2024
1 parent 3f015ac commit 438b110
Show file tree
Hide file tree
Showing 200 changed files with 685 additions and 317 deletions.
Binary file modified assignments/data/1-ListIMDB/c++.zip
Binary file not shown.
Binary file modified assignments/data/1-ListIMDB/java.zip
Binary file not shown.
Binary file modified assignments/data/1-ListIMDB/python.zip
Binary file not shown.
Binary file modified assignments/data/10-HurricaneTracker/c++.zip
Binary file not shown.
Binary file modified assignments/data/10-HurricaneTracker/java.zip
Binary file not shown.
Binary file modified assignments/data/10-HurricaneTracker/python.zip
Binary file not shown.
Binary file modified assignments/data/11-2048Game/c++.zip
Binary file not shown.
Binary file modified assignments/data/11-2048Game/java.zip
Binary file not shown.
Binary file modified assignments/data/11-2048Game/python.zip
Binary file not shown.
Binary file modified assignments/data/12-AStarMaze/c++.zip
Binary file not shown.
Binary file modified assignments/data/12-AStarMaze/java.zip
Binary file not shown.
Binary file modified assignments/data/12-AStarMaze/python.zip
Binary file not shown.
Binary file modified assignments/data/13-InfiniteRunner/c++.zip
Binary file not shown.
Binary file modified assignments/data/13-InfiniteRunner/java.zip
Binary file not shown.
Binary file modified assignments/data/13-InfiniteRunner/python.zip
Binary file not shown.
Binary file modified assignments/data/14-SpreadingFire/c++.zip
Binary file not shown.
Binary file modified assignments/data/14-SpreadingFire/java.zip
Binary file not shown.
Binary file modified assignments/data/14-SpreadingFire/python.zip
Binary file not shown.
Binary file modified assignments/data/15-FallingSand/c++.zip
Binary file not shown.
Binary file modified assignments/data/15-FallingSand/java.zip
Binary file not shown.
Binary file modified assignments/data/15-FallingSand/python.zip
Binary file not shown.
Binary file modified assignments/data/16-ImagePuzzle/c++.zip
Binary file not shown.
Binary file modified assignments/data/16-ImagePuzzle/java.zip
Binary file not shown.
Binary file modified assignments/data/16-ImagePuzzle/python.zip
Binary file not shown.
Binary file modified assignments/data/17-ControlsTutorial/c++.zip
Binary file not shown.
Binary file modified assignments/data/17-ControlsTutorial/python.zip
Binary file not shown.
Binary file modified assignments/data/18-ControlsTutorialTwo/c++.zip
Binary file not shown.
Binary file modified assignments/data/18-ControlsTutorialTwo/java.zip
Binary file not shown.
Binary file modified assignments/data/18-ControlsTutorialTwo/python.zip
Binary file not shown.
Binary file modified assignments/data/19-Bugstomp/c++.zip
Binary file not shown.
Binary file modified assignments/data/19-Bugstomp/java.zip
Binary file not shown.
Binary file modified assignments/data/19-Bugstomp/python.zip
Binary file not shown.
Binary file modified assignments/data/2-ListEQ/c++.zip
Binary file not shown.
Binary file modified assignments/data/2-ListEQ/java.zip
Binary file not shown.
Binary file modified assignments/data/2-ListEQ/python.zip
Binary file not shown.
Binary file modified assignments/data/20-Minesweeper/c++.zip
Binary file not shown.
Binary file modified assignments/data/20-Minesweeper/java.zip
Binary file not shown.
Binary file modified assignments/data/20-Minesweeper/python.zip
Binary file not shown.
28 changes: 20 additions & 8 deletions assignments/data/21-RaceCar/README.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
<h1>Race Car Game</h1>
<h1>Assignment 21 - Race Car Game</h1>
<h2>Example Output</h2>
<p><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
<h2>Learning Outcomes</h2>
<ol>
<li>Encapsulation</li>
<li>Conditions</li>
<li>Loops</li>
<li>Arrays</li>
</ol>
<h2>Goals</h2>
<p>The purpose of this assignment is to learn to</p>
<ol>
<li>Create a game where the player drives a car around an ever-changing track.</li>
</ol>
<h2>Programming</h2>
<h2>Description</h2>
<h3>Tasks</h3>
<ul>
<li>Initialize a 2D array the size of your game grid.</li>
Expand All @@ -17,8 +26,8 @@ <h3>Tasks</h3>
<li>Create a function that places random objects that the player could crash into and trigger a game over.</li>
<li>Create a win scenario.</li>
</ul>
<h2>More Details to Get You Started</h2>
<p>###Key Press Events - NonBlocking Games</p>
<h3>More Details to Get You Started</h3>
<h4>Key Press Events - NonBlocking Games</h4>
<ul>
<li>keyUp()</li>
<li>keyDown()</li>
Expand All @@ -31,7 +40,7 @@ <h2>More Details to Get You Started</h2>
<li>keyA()</li>
<li>keyD()</li>
</ul>
<p>###Key Press Events - Blocking Games</p>
<h4>Key Press Events - Blocking Games</h4>
<ul>
<li>getKeyPress(); Returns a string.</li>
<li>&quot;ArrowLeft&quot;</li>
Expand All @@ -44,21 +53,24 @@ <h2>More Details to Get You Started</h2>
<li>&quot;d&quot;</li>
<li>etc...</li>
</ul>
<p>###Variables, Colors, and Sprite Symbols</p>
<h4>Variables, Colors, and Sprite Symbols</h4>
<ul>
<li>NamedSymbol.symbolname;</li>
<li>NamedColor.colorname;</li>
<li>drawSymbol(column, row, NamedSymbol, NamedColor);</li>
<li>setBGColor(column, row, NamedColor);</li>
</ul>
<p>###Important Functions</p>
<h4>Important Functions</h4>
<ul>
<li>The gameLoop() function loops until the game is over.</li>
<li>quit() stops the game.</li>
<li>start() starts the game and calls the initialize() function once before it starts the gameLoop() function.</li>
<li>render() sends your updated game grid to the server once. This is a blocking game function.</li>
</ul>
<h3>Help</h3>
<h2>Extensions</h2>
<h2>Help</h2>
<h4>For Java</h4>
<p><a href="http://bridgesuncc.github.io/doc/java-api/current/html/classbridges_1_1games_1_1_non_blocking_game.html">NonBlockingGame documentation</a></p>
<h4>For C++</h4>
<p><a href="http://bridgesuncc.github.io/doc/cxx-api/current/html/classbridges_1_1game_1_1_non_blocking_game.html">NonBlockingGame documentation</a></p>
<h4>For Python</h4>
Expand Down
47 changes: 34 additions & 13 deletions assignments/data/21-RaceCar/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
Race Car Game
=============
# Assignment 21 - Race Car Game

## Example Output

<img src="./Racecar.png" alt="image" width="550"></img>


## Learning Outcomes

1. Encapsulation
2. Conditions
3. Loops
4. Arrays


## Goals

Goals
-----
The purpose of this assignment is to learn to
1. Create a game where the player drives a car around an ever-changing track.

Programming
-----------

## Description

### Tasks
- Initialize a 2D array the size of your game grid.
- Initialize the NamedColors and symbols for your car, walls and background.
Expand All @@ -19,9 +32,8 @@ Programming
- Create a function that places random objects that the player could crash into and trigger a game over.
- Create a win scenario.

More Details to Get You Started
-------------------------------
###Key Press Events - NonBlocking Games
### More Details to Get You Started
#### Key Press Events - NonBlocking Games
- keyUp()
- keyDown()
- keyLeft()
Expand All @@ -33,7 +45,7 @@ More Details to Get You Started
- keyA()
- keyD()

###Key Press Events - Blocking Games
#### Key Press Events - Blocking Games
- getKeyPress(); Returns a string.
- "ArrowLeft"
- "ArrowRight"
Expand All @@ -45,20 +57,29 @@ More Details to Get You Started
- "d"
- etc...

###Variables, Colors, and Sprite Symbols
#### Variables, Colors, and Sprite Symbols
- NamedSymbol.symbolname;
- NamedColor.colorname;
- drawSymbol(column, row, NamedSymbol, NamedColor);
- setBGColor(column, row, NamedColor);

###Important Functions
#### Important Functions
- The gameLoop() function loops until the game is over.
- quit() stops the game.
- start() starts the game and calls the initialize() function once before it starts the gameLoop() function.
- render() sends your updated game grid to the server once. This is a blocking game function.

### Help

## Extensions


## Help

#### For Java
[NonBlockingGame documentation](http://bridgesuncc.github.io/doc/java-api/current/html/classbridges_1_1games_1_1_non_blocking_game.html)

#### For C++
[NonBlockingGame documentation](http://bridgesuncc.github.io/doc/cxx-api/current/html/classbridges_1_1game_1_1_non_blocking_game.html)

#### For Python
[NonBlockingGame documentation](http://bridgesuncc.github.io/doc/python-api/current/html/classbridges_1_1non__blocking__game_1_1_non_blocking_game.html)
Binary file modified assignments/data/21-RaceCar/c++.zip
Binary file not shown.
Binary file modified assignments/data/21-RaceCar/java.zip
Binary file not shown.
Binary file modified assignments/data/21-RaceCar/python.zip
Binary file not shown.
27 changes: 19 additions & 8 deletions assignments/data/22-Snake/README.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
<h1>Snake Game</h1>
<h1>Assignment 22 - Snake Game</h1>
<h2>Example Output</h2>
<p><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
<h2>Learning Outcomes</h2>
<ol>
<li>Queues</li>
<li>Loops</li>
</ol>
<h2>Goals</h2>
<p>The purpose of this assignment is to learn to</p>
<ol>
<li>The classic game of Snake. Move a &quot;snake&quot; (line of sprites) along a 2D grid attempting to run over a randomly placed object to help it grow.</li>
<li>If it runs into itself the game is over and the player has lost.</li>
<li>The object of the game is to make the snake as big as possible.</li>
</ol>
<h2>Programming</h2>
<h2>Description</h2>
<h3>Tasks</h3>
<ul>
<li>Initialize a 2D array the size of your game grid.</li>
Expand All @@ -17,8 +24,9 @@ <h3>Tasks</h3>
<li>Create a function that handles the condition of the snakes head interacting with the food object. Make sure the snakes body grows and the object is gone after a collision.</li>
<li>Implement a condition which triggers a game over if the snakes head collides with its body.</li>
</ul>
<h2>More Details to Get You Started</h2>
<p>###Key Press Events - NonBlocking Games</p>
<h3>More Details to Get You Started</h3>
<hr />
<h4>Key Press Events - NonBlocking Games</h4>
<ul>
<li>keyUp()</li>
<li>keyDown()</li>
Expand All @@ -31,7 +39,7 @@ <h2>More Details to Get You Started</h2>
<li>keyA()</li>
<li>keyD()</li>
</ul>
<p>###Key Press Events - Blocking Games</p>
<h4>Key Press Events - Blocking Games</h4>
<ul>
<li>getKeyPress(); Returns a string.</li>
<li>&quot;ArrowLeft&quot;</li>
Expand All @@ -44,21 +52,24 @@ <h2>More Details to Get You Started</h2>
<li>&quot;d&quot;</li>
<li>etc...</li>
</ul>
<p>###Variables, Colors, and Sprite Symbols</p>
<h4>Variables, Colors, and Sprite Symbols</h4>
<ul>
<li>NamedSymbol.symbolname;</li>
<li>NamedColor.colorname;</li>
<li>drawObject(column, row, NamedSymbol, NamedColor);</li>
<li>setBGColor(column, row, NamedColor);</li>
</ul>
<p>###Important Functions</p>
<h4>Important Functions</h4>
<ul>
<li>The gameLoop() function loops until the game is over.</li>
<li>quit() stops the game.</li>
<li>start() starts the game and calls the initialize() function once before it starts the gameLoop() function.</li>
<li>render() sends your updated game grid to the server once. This is a blocking game function.</li>
</ul>
<h3>Help</h3>
<h2>Extensions</h2>
<h2>Help</h2>
<h4>For Java</h4>
<p><a href="http://bridgesuncc.github.io/doc/java-api/current/html/classbridges_1_1games_1_1_non_blocking_game.html">NonBlockingGame documentation</a></p>
<h4>For C++</h4>
<p><a href="http://bridgesuncc.github.io/doc/cxx-api/current/html/classbridges_1_1game_1_1_non_blocking_game.html">NonBlockingGame documentation</a></p>
<h4>For Python</h4>
Expand Down
44 changes: 32 additions & 12 deletions assignments/data/22-Snake/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
Snake Game
============
# Assignment 22 - Snake Game

## Example Output

<img src="./Snake.png" alt="image" width="550"></img>


## Learning Outcomes

1. Queues
2. Loops


## Goals

Goals
-----
The purpose of this assignment is to learn to
1. The classic game of Snake. Move a "snake" (line of sprites) along a 2D grid attempting to run over a randomly placed object to help it grow.
2. If it runs into itself the game is over and the player has lost.
3. The object of the game is to make the snake as big as possible.

Programming
-----------

## Description

### Tasks
- Initialize a 2D array the size of your game grid.
- Initialize the NamedColors of your background, snake, and object.
Expand All @@ -19,9 +30,9 @@ Programming
- Create a function that handles the condition of the snakes head interacting with the food object. Make sure the snakes body grows and the object is gone after a collision.
- Implement a condition which triggers a game over if the snakes head collides with its body.

More Details to Get You Started
### More Details to Get You Started
-------------------------------
###Key Press Events - NonBlocking Games
#### Key Press Events - NonBlocking Games
- keyUp()
- keyDown()
- keyLeft()
Expand All @@ -33,7 +44,7 @@ More Details to Get You Started
- keyA()
- keyD()

###Key Press Events - Blocking Games
#### Key Press Events - Blocking Games
- getKeyPress(); Returns a string.
- "ArrowLeft"
- "ArrowRight"
Expand All @@ -45,20 +56,29 @@ More Details to Get You Started
- "d"
- etc...

###Variables, Colors, and Sprite Symbols
#### Variables, Colors, and Sprite Symbols
- NamedSymbol.symbolname;
- NamedColor.colorname;
- drawObject(column, row, NamedSymbol, NamedColor);
- setBGColor(column, row, NamedColor);

###Important Functions
#### Important Functions
- The gameLoop() function loops until the game is over.
- quit() stops the game.
- start() starts the game and calls the initialize() function once before it starts the gameLoop() function.
- render() sends your updated game grid to the server once. This is a blocking game function.

### Help

## Extensions


## Help

#### For Java
[NonBlockingGame documentation](http://bridgesuncc.github.io/doc/java-api/current/html/classbridges_1_1games_1_1_non_blocking_game.html)

#### For C++
[NonBlockingGame documentation](http://bridgesuncc.github.io/doc/cxx-api/current/html/classbridges_1_1game_1_1_non_blocking_game.html)

#### For Python
[NonBlockingGame documentation](http://bridgesuncc.github.io/doc/python-api/current/html/classbridges_1_1non__blocking__game_1_1_non_blocking_game.html)
Binary file modified assignments/data/22-Snake/c++.zip
Binary file not shown.
Binary file modified assignments/data/22-Snake/java.zip
Binary file not shown.
Binary file modified assignments/data/22-Snake/python.zip
Binary file not shown.
Loading

0 comments on commit 438b110

Please sign in to comment.