-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Simplifying names for clarity
- Loading branch information
Showing
26 changed files
with
289 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
|
||
This directory contains primarily front end `Goban` functionality. | ||
|
||
The main class here is the `Goban` class, however because there is a lot of | ||
code and functionality that get's bundled up into a `Goban`, we've broken up | ||
that functionality across several files which implement different units of | ||
functionality and we use class inheritance to stack them up to something | ||
usable. | ||
|
||
|
||
|
||
|
||
```mermaid | ||
--- | ||
title: Goban functionality layers | ||
--- | ||
classDiagram | ||
SVGRenderer --|> Goban : Rendering implementation | ||
CanvasRenderer --|> Goban: Rendering implementation | ||
Goban --|> OGSConnectivity : extends | ||
OGSConnectivity --|> InteractiveBase: extends | ||
InteractiveBase --|> GobanBase: extends | ||
class SVGRenderer { | ||
Final rendering functionality | ||
} | ||
class CanvasRenderer { | ||
Final rendering functionality | ||
} | ||
class Goban { | ||
Full functionality exposed | ||
Common DOM manipulation functionality for our renderers | ||
} | ||
class OGSConnectivity { | ||
Encapsulates socket connection logic | ||
} | ||
class InteractiveBase { | ||
General purpose interactive functionality | ||
No DOM expectations at this layer | ||
} | ||
class GobanBase { | ||
Very abstract base that the Engine can use to interact with the Goban | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.