-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.dpy
172 lines (144 loc) · 10.1 KB
/
release.dpy
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html>
<head>
<title>4d TicTacToe</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<python>
import header
print(header.header)
</python>
<div id="main">
<h1 align="center">4D Tic Tac Toe</h1>
<div style="display:flex;">
<div style="display:flex; background-color: #777777; width:85%; margin-top:50px; border-radius: 5px; border-color:black; border-width: 2px; border-top-width:10px; border-style:groove; margin:auto; margin-top:50px; padding-bottom:0px;">
<div id="displayArea" style="margin:25px; margin-top:50px; width:60%;">
<p id="PlayerTeam" style="float:right; font-size: 50px; margin-top:15px; margin-right:100px; color:rgb(104, 187, 255);"> </p>
<p id="PlayerTurn" style="font-size:20px;"> </p>
<p id="BoardID" style="font-size:20px;"> </p>
<P id="errStr"> </P>
<div id="joinUI">
<textarea rows="1" cols="38" id="usernameInput" placeholder="Username"></textarea><br>
<button onclick="setUsername()">Set Username</button><br><br>
<textarea rows="1" cols="38" id="BoardIDInput" placeholder="Board ID (Default is Avaliable)"></textarea>
<div style="display:flex;">
<button onclick="joinBoard()">Join Board</button>
<button onclick="createBoard()">Create Private Board</button>
</div>
</div>
<div id="playerList" style="float:right; width:100px; margin-top:10px; margin-right:5px;">
</div>
<button onclick="window.location.reload(false);" id="backToLobby" style="margin-top:75px; display:none;">Back to Lobby</button>
</div>
<div style="margin-left:10px; margin-bottom:15px;">
<div>
<canvas id="TicTacToe" style="padding:0px; background-color: black; border-radius: 5px; margin-top:50px;"></canvas>
</div>
</div>
<div style="margin-left:45px; background-color:#666666; border-radius: 0px; border-top-left-radius: 0; width:100%;">
<h2 style="margin:20px;">What is this?</h2>
<div style="justify-content: center; width:90%; margin:20px;">
<p style="text-align:left;">4D Tic Tac Toe was created as a project at an A.C.R.O.N.Y.M. Meeting in December of 2019. Our goal was to create an interesting piece of software over the course of 24 continous hours. The game was completed and playable within that time, but several more hours were put into refining it, and setting up the server which now hosts it. A team of 5 worked on this project, and are listed below. The client code is written in standard HTML + Javascript, while the backend is written in Python. Communication is over Websocket. There is also a small amount of Dynamic Python involved in rendering the page, accomplished with <a href="https://github.com/CarterTS" style="color:white;">Carter Plasek's</a> custom Web Server. All code for this project (Excluding the web server code.) is Avaliable on Github, linked below.</a></p>
</div>
<h2 style="margin:20px; margin-top:15px;">How do I play?</h2>
<div style="justify-content: center; width:90%; margin:20px;">
<p style="text-align:left;">The game is played much like regular Tic Tac Toe, except that each of the boards is linked as it would be if they were stacked in 4 Dimensional space. Each horizontal and vertical row/column stacks such that each cell is adjacent to the same cell in the other grids in that row/column. First to 3 in a row wins. Clicking Join game will add you to the first avaliable board that only has a single player in it. If there are not any boards with a free player slot, a new board will be created. If you enter a board ID before clicking join game you can join a specific board (Regardless of the number of players.). Clicking Create Private Game will Create a private board. Players will not be automatically assigned to this board and will need to enter the board ID to access it. Once you are done playing a board, you can click 'Back to Lobby' to play again.</p>
</div>
</div>
</div>
</div>
<div align="center">
<h1 style="margin-top:75px;">Who Made This?</h1>
<div style="display:flex; flex-wrap:wrap; justify-content: center; width:100%;">
<div style="display:flex; margin:30px;">
<img class="profilePic" src="http://scienceandpizza.com/Images/Profiles/Jordan.jpeg">
<div>
<H4 class="profileText">Jordan Hofstrand</H4>
<H4 class="profileText">Server, Web Admin (Weaver of Webs)</H4>
<H4 class="profileText">[email protected]</H4>
<a href="https://github.com/Jordanayan" class="profileText">Jordanayan on Github</a>
</div>
</div>
<div style="display:flex; margin:30px;">
<img class="profilePic" src="http://scienceandpizza.com/Images/Profiles/Rochester.jpeg">
<div>
<H4 class="profileText">Rochester McLain</H4>
<H4 class="profileText">Maths, Chief Organizer</H4>
<H4 class="profileText">[email protected]</H4>
</div>
</div>
<div style="display:flex; margin:30px;">
<img class="profilePic" src="http://scienceandpizza.com/Images/Profiles/Ethan.jpeg">
<div>
<H4 class="profileText">Ethan Hunt</H4>
<H4 class="profileText">Client Networking</H4>
<H4 class="profileText">[email protected]</H4>
<a href="https://github.com/Pookachu" class="profileText">Pookachu On Github</a>
</div>
</div>
<div style="display:flex; margin:30px;">
<img class="profilePic" src="http://scienceandpizza.com/Images/Profiles/Ian.png">
<div>
<H4 class="profileText">Ian Newbold</H4>
<H4 class="profileText">Official Bad Ideas Officer</H4>
<H4 class="profileText">[email protected]</H4>
<a href="https://twitter.com/ToaSuutox" class="profileText">@ToaSuutox On Twitter</a>
</div>
</div>
<div style="display:flex; margin:30px;">
<div>
<H4 class="profileText">Alex Schmidt</H4>
<H4 class="profileText">User Interface</H4>
</div>
</div>
</div>
<div style="width:70%; height:1px; background-color:rgb(207, 207, 207); margin:25px;"></div>
<h1 style="margin-top:75px;">Example Win Conditions</h1>
<h4 style="margin-top:15px;">Each of the following boards is a win for X</h4>
<div class="profileFlexbox" style="height:325px; justify-content: center;">
<img class="ExampleTicTacImg" src="http://scienceandpizza.com/4dTicTacToe/ExWinState1.png">
<img class="ExampleTicTacImg" src="http://scienceandpizza.com/4dTicTacToe/ExWinState2.png">
<img class="ExampleTicTacImg" src="http://scienceandpizza.com/4dTicTacToe/ExWinState3.png">
<img class="ExampleTicTacImg" src="http://scienceandpizza.com/4dTicTacToe/ExWinState4.png">
<img class="ExampleTicTacImg" src="http://scienceandpizza.com/4dTicTacToe/ExWinState5.png">
</div>
<div style="width:70%; height:1px; background-color:rgb(207, 207, 207); margin:25px;"></div>
<h1 style="margin-top:75px;">4D Tic Tac Toe Stats</h1>
<div class="profileFlexbox" style="height:250px; justify-content: center;">
<div class="StatItem">
<p id="numPageLoads" style="font-size:75px;">0</p>
<h5 style="margin-top:150px;">Page Loads</h5>
</div>
<div class="StatItem">
<p id="numGames" style="font-size:75px;">0</p>
<h5 style="margin-top:150px;">Games</h5>
</div>
<div class="StatItem">
<p id="numXWins" style="font-size:75px;">0</p>
<h5 style="margin-top:150px;">X wins</h5>
</div>
<div class="StatItem">
<p id="numOWins" style="font-size:75px;">0</p>
<h5 style="margin-top:150px;">O wins</h5>
</div>
<div class="StatItem">
<p id="numMoves" style="font-size:75px;">0</p>
<h5 style="margin-top:150px;">Moves</h5>
</div>
<div class="StatItem">
<p id="avgMovesPerGame" style="font-size:75px;">0</p>
<h5 style="margin-top:150px;">Avg Moves/Game</h5>
</div>
</div>
<div style="width:70%; height:1px; background-color:rgb(207, 207, 207); margin:25px;"></div>
<h1 style="margin-top:75px;">Were's the Source Code?</h1>
<div class="profileFlexbox" style="height:250px; justify-content: center;">
<img class="profilePic" src="http://scienceandpizza.com/Images/Links/Github.png" >
<a href="https://github.com/ACRONYM-Group/3dTicTacToe" style="color:white; margin:20px;">The Tic Tac Toe Project on Github</a>
</div>
</div>
</div>
<script src="tiktok.js"></script>
</body>
</html>