Difference between revisions of "AP Computer Science"

From WLCS
(Thursday (12/5/19))
(47 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Monday (10/21/19) ==
+
== Thursday (12/5/19) ==
 
'''Agenda:'''
 
'''Agenda:'''
* 1st Quarter Exam - '''Thursday 10/31/19'''
+
* Test 10 questions?
** All topics are fair game up through while loops
+
* Activity 12 check
* Tic-Tac-Toe: Part 3 demos today
+
* Coming soon...Processing review
* Test 7 questions
+
** Bouncing Ball
* Looping cont'd
+
** Brick Breaker
** while loops quiz on '''Wednesday (10/23/10)'''
 
**# Write a loop that counts the number of occurrences of a particular substring within a larger string (there are many ways to do this)
 
**# Write a loop that prints the location of every occurrence of a particular substring within a larger string (there are many ways to do this!)
 
** While loops with arrays
 
**# Write a loop that prints every element of an int[]
 
**# Write a loop that prints the square of every element in an int[]
 
**# Write a loop that sums all the numbers of an int[]
 
  
== Thursday (10/17/19) ==
+
== Tuesday (12/3/19) ==
 
'''Agenda:'''
 
'''Agenda:'''
* Did you complete Activity 6?
+
* Java Methods & Strings quiz
* Iteration - While Loops
+
* Repl.it reminder - all assignments should be completed by now
** Basic while loops
+
* Multiple Variable Declarations
**# Write a loop that prints 0 to 10 (exclusive)
+
* Overloaded Methods
**# Write a loop that prints 10 to 0 (inclusive)
+
** Exercises & Examples
**# Write a loop that sums all the numbers from 0 to 1000 (inclusive)
+
** Why would we want to overload methods?
**# Write a loop that prints all the numbers that are divisible by 3 and 7 between 0 and 1000
+
* Complete Activity 12: Optional Arguments
** While loops with strings
 
**# Write a loop that prints each character of a String s (you supply the String's value)
 
**# Write a loop that prints every other character of a String s
 
**# Write a loop that prints each character of a String s from end to beginning
 
**# Write a loop that counts the number of occurrences of a particular substring within a larger string (there are many ways to do this)
 
**# Write a loop that prints the location of every occurrence of a particular substring within a larger string (there are many ways to do this!)
 
** While loops with arrays
 
**# Write a loop that prints every element of an int[]
 
**# Write a loop that prints the square of every element in an int[]
 
**# Write a loop that sums all the numbers of an int[]
 
** Complete Test 6 and Test 7
 
 
 
'''Homework:'''
 
* Complete Test 6 and Test 7 if you did not do so in class
 
 
 
== Friday (10/11/19) ==
 
'''Agenda:'''
 
* Activity 5 Questions?
 
* Test 5 Questions?
 
* Arrays Quiz
 
* Complete Activity 6
 
 
 
'''Homework:'''
 
* Complete Activity 6: Airline Meals
 
 
 
== Wednesday (10/9/19) ==
 
'''Agenda:'''
 
* Demo completed Tic-Tac-Toe game
 
* Introduction to Arrays
 
** Walk-through and read eIMACS: Arrays chapter (page 60)
 
** [https://docs.google.com/a/apsva.us/presentation/d/1Ayzvd1q-6RwZKplUtLHDCCLyO5XIR5kyeKUi8-htErY/edit?usp=sharing Java Arrays]
 
** Complete the Canvas Arrays Practice assignment
 
** Complete Activity 5: Arrays
 
** Java Arrays Quiz on '''Friday (10/11/19)'''
 
 
 
'''Homework:'''
 
* Complete Test 5
 
 
 
== Monday (10/7/19) ==
 
'''Agenda:'''
 
* Demo Tic-Tac-Toe - Part 2
 
* Tic-Tac-Toe - Part 3
 
*# Be sure to create a new sketch so as not to lose your working Part 2 code
 
*# Add conditionals to check if any 3 locations match (make sure that at least one of the locations is not equal to the empty string)
 
*# Display a text() message that indicates the winner
 
*# Call the noLoop() method to stop the game when there is a winner
 
*# Implement a mechanism/conditional to check if the game is a draw (tie)
 
* Demo a completed Tic-Tac-Toe game
 
* Challenge:
 
*# Implement an AI to play against you
 
*# Design and implement [https://en.wikipedia.org/wiki/Ultimate_tic-tac-toe Ultimate/Super Tic-Tac-Toe]
 
 
 
== Thursday (10/3/19) ==
 
'''Agenda:'''
 
* Work on and complete Tic-Tac-Toe - Part 2
 
*# Add a String variable to track the turn ("X" or "O")
 
*# You have two options:
 
*#* Add a two-dimensional String array to your Tic-Tac-Toe at the top to track the moves (all elements start as "", but will be "X" or "O" later)
 
*#* Add 9 String variables, one for each Tic-Tac-Toe square. Use a naming convention like (b_0_0, b_0_1, etc.)
 
*# Implement the appropriate code in mouseReleased() and draw() to draw Xs and Os where the mouse button is released
 
*# Make sure that you also have conditionals to check whether or not the location that is clicked is still empty (check against 2D array)
 
*# Make sure you update the 2-D String array OR your b_#_# variables with the current player's move
 
*# Update the turn variable so that it switches after a player has successfully made a move
 
*# Don't forget to update your draw() with text() commands so that all the moves are displayed
 
* Done with the above? Here are some challenges:
 
*# Implement a winner checking feature to stop the game and display who won
 
*# Implement an AI to play against you
 
*# Design and implement [https://en.wikipedia.org/wiki/Ultimate_tic-tac-toe Ultimate/Super Tic-Tac-Toe]
 
 
 
== Tuesday (10/1/19) ==
 
'''Agenda:'''
 
* Demo Tic-Tac-Toe: Select-a-Square
 
* Read [https://www.processing.org/reference/text_.html text()] and test it out to draw some text on the screen
 
* Read [https://www.processing.org/reference/mouseReleased_.html mouseReleased()] and test out the code
 
* X-O clicker assignment
 
*# Modify the code of the mouseReleased() so that a text-based X or O is drawn every time the mouse button is released
 
* Work on and complete Tic-Tac-Toe - Part 2
 
*# Add a String variable to track the turn ("X" or "O")
 
*# You have two options:
 
*#* Add a two-dimensional String array to your Tic-Tac-Toe at the top to track the moves (all elements start as "", but will be "X" or "O" later)
 
*#* Add 9 String variables, one for each Tic-Tac-Toe square. Use a naming convention like (b_0_0, b_0_1, etc.)
 
*# Implement the appropriate code in mouseReleased() and draw() to draw Xs and Os where the mouse button is released
 
*# Make sure that you also have conditionals to check whether or not the location that is clicked is still empty (check against 2D array)
 
*# Make sure you update the 2-D String array OR your b_#_# variables with the current player's move
 
*# Update the turn variable so that it switches after a player has successfully made a move
 
*# Don't forget to update your draw() with text() commands so that all the moves are displayed
 
* Done with the above? Here are some challenges:
 
*# Implement a winner checking feature to stop the game and display who won
 
*# Implement an AI to play against you
 
*# Design and implement [https://en.wikipedia.org/wiki/Ultimate_tic-tac-toe Ultimate/Super Tic-Tac-Toe]
 
  
 +
== [[APCS - 1920 - November]] ==
 +
== [[APCS - 1920 - October]] ==
 
== [[APCS - 1920 - September]] ==
 
== [[APCS - 1920 - September]] ==
 
 
== [[APCS - Archives]] ==
 
== [[APCS - Archives]] ==

Revision as of 09:53, 5 December 2019

Thursday (12/5/19)

Agenda:

  • Test 10 questions?
  • Activity 12 check
  • Coming soon...Processing review
    • Bouncing Ball
    • Brick Breaker

Tuesday (12/3/19)

Agenda:

  • Java Methods & Strings quiz
  • Repl.it reminder - all assignments should be completed by now
  • Multiple Variable Declarations
  • Overloaded Methods
    • Exercises & Examples
    • Why would we want to overload methods?
  • Complete Activity 12: Optional Arguments

APCS - 1920 - November

APCS - 1920 - October

APCS - 1920 - September

APCS - Archives