awesome-low-level-design icon indicating copy to clipboard operation
awesome-low-level-design copied to clipboard

Unnecessary Synchronization in Tic Tac Toe

Open Shubham663 opened this issue 6 months ago • 0 comments

In Tic Tac Toe design, the Board class uses a synchronized make move method. Since a new board and therefore a new grid is created for each game, therefore no concurrency issues can be introduced there. Also if judging from user actions, the users proceed one by one and there are no concurrent operations there. Based on these things, synchronized keyword is not required.

Shubham663 avatar Apr 25 '25 07:04 Shubham663