Skip to content

Program Design & Algorithms

YeshwiniR edited this page Jul 5, 2020 · 12 revisions

Algorithms Used


  • Atomic Boolean is used for flagging to terminate the threads.
  • ExecutorService is used for multithreading
  • We used JFrame and JFreeChart to create a graph to display the GUI results for the game
  • Synchronization is implemented when adding data to the lines arrayList.
  • Future and Callable are implemented for the Timer thread.

Program design


Activity Diagram


Capture 4

State Diagram


Timer class

Timer

Point class

Point

Class Diagram


Flowchart


Clone this wiki locally