-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConnect4Slot.ctxt
More file actions
29 lines (29 loc) · 2.04 KB
/
Connect4Slot.ctxt
File metadata and controls
29 lines (29 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#BlueJ class context
comment0.params=
comment0.target=Connect4Slot()
comment0.text=\n\ Creates\ a\ new\ Connect4Slot,\ initially\ unfilled.\n\ \n\ Your\ agent\ will\ not\ need\ to\ use\ this\ method.\n
comment1.params=slot
comment1.target=Connect4Slot(Connect4Slot)
comment1.text=\n\ Copies\ the\ given\ slot.\n\ \n\ Your\ agent\ will\ not\ need\ to\ use\ this\ method.\n\ \n\ @param\ slot\ the\ slot\ to\ copy.\n
comment2.params=
comment2.target=boolean\ getIsFilled()
comment2.text=\n\ Checks\ if\ the\ slot\ is\ currently\ filled.\n\ \n\ Your\ agent\ WILL\ need\ to\ use\ this\ method.\n\ \n\ @return\ true\ if\ filled,\ false\ if\ not.\n
comment3.params=
comment3.target=boolean\ getIsRed()
comment3.text=\n\ If\ the\ slot\ is\ filled,\ checks\ if\ the\ token\ in\ the\ slot\ is\ red.\n\ \n\ If\ the\ slot\ is\ not\ filled,\ this\ will\ still\ return\ false;\ so,\ this\ should\ only\n\ be\ checked\ after\ checking\ getIsFilled().\n\ \n\ Your\ agent\ WILL\ need\ to\ use\ this\ method.\n\ \n\ @return\ true\ if\ the\ token\ in\ the\ slot\ is\ red,\ false\ if\ it\ is\ yellow.\n
comment4.params=
comment4.target=void\ addRed()
comment4.text=\n\ If\ the\ slot\ is\ currently\ empty,\ adds\ a\ red\ token\ to\ it.\n\ \n\ Your\ agent\ WILL\ need\ to\ use\ this\ method.\n
comment5.params=
comment5.target=void\ addYellow()
comment5.text=\n\ If\ the\ slot\ is\ currently\ empty,\ adds\ a\ yellow\ token\ to\ it.\n\ \n\ Your\ agent\ WILL\ need\ to\ use\ this\ method.\n
comment6.params=
comment6.target=boolean\ getIsHighlighted()
comment6.text=\n\ Checks\ if\ the\ slot\ should\ be\ highlighted\ because\ it\ is\ part\ of\ a\ winning\ move.\n\ \n\ Your\ agent\ will\ not\ need\ to\ use\ this\ method.\n\ \n\ @return\ true\ if\ the\ slot\ is\ highlighted,\ false\ if\ not.\n
comment7.params=
comment7.target=void\ highlight()
comment7.text=\n\ Highlights\ the\ slot.\n\ \n\ Your\ agent\ will\ not\ need\ to\ use\ this\ method.\n
comment8.params=
comment8.target=void\ clear()
comment8.text=\n\ Clears\ the\ slot.\n\ \n\ Your\ agent\ will\ not\ need\ to\ use\ this\ method.\n
numComments=9