Skip to content

Commit e0794dc

Browse files
authored
Merge pull request #5 from rmodi6/staging
Merge staging to main
2 parents 5684acc + 6404be6 commit e0794dc

3 files changed

Lines changed: 58 additions & 4 deletions

File tree

index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,7 @@ <h3 class="featurette-heading">Java Applets <br /><span class="text-muted">Snake
341341
<h3 class="featurette-heading">Java Swing <br /><span class="text-muted">Minesweeper Game</span></h3>
342342
<p class="lead">The age-old annoying Minesweeper game on Windows implemented in Java using Java Swing tools that required deep knowledge of data structures and algorithms.</p>
343343
<a href="https://github.com/rmodi6/Minesweeper-Game" title="Source Code" target="_blank"><button class="btn btn-primary"><i class="fa fa-code"></i> Source Code</button></a>
344-
<a href="minesweeper/Minesweeper.jar" title="Download Application"><button class="btn btn-success"><span class="glyphicon glyphicon-download-alt"></span> Application</button></a>
345-
<a href="https://repl.it/@rmodi6/Minesweeper-Game" title="Play It!" onclick="window.open(this.href,'targetWindow'); return false;"><button class="btn btn-primary"><span class="glyphicon glyphicon-play"></span> Play</button></a>
344+
<a href="minesweeper" title="Play It!" onclick="window.open(this.href,'targetWindow'); return false;"><button class="btn btn-success"><span class="glyphicon glyphicon-play"></span> Play</button></a>
346345
</div>
347346
<br />
348347
<div class="col-sm-5 col-sm-pull-7">
@@ -393,8 +392,7 @@ <h3 class="featurette-heading">Java Swing <br /><span class="text-muted">Mineswe
393392
<h3 class="featurette-heading">Artificial Intelligence <br /><span class="text-muted">Tic Tac Toe with AI</span></h3>
394393
<p class="lead">Tic Tac Toe game (a.k.a. Noughts and Crosses) with an AI opponent that either wins or draws but never loses, developed using MiniMax Algorithm with Alpha-Beta pruning for optimization.</p>
395394
<a href="https://github.com/rmodi6/TicTacToe-with-AI" title="Source Code" target="_blank"><button class="btn btn-primary"><i class="fa fa-code"></i> Source Code</button></a>
396-
<a href="tictactoe/TicTacToe.jar" title="Download Application"><button class="btn btn-success"><span class="glyphicon glyphicon-download-alt"></span> Application</button></a>
397-
<a href="https://replit.com/@rmodi6/TicTacToe-with-AI" title="Play It!" onclick="window.open(this.href,'targetWindow'); return false;"><button class="btn btn-primary"><span class="glyphicon glyphicon-play"></span> Play</button></a>
395+
<a href="tictactoe" title="Play It!" onclick="window.open(this.href,'targetWindow'); return false;"><button class="btn btn-success"><span class="glyphicon glyphicon-play"></span> Play</button></a>
398396
</div>
399397
<br />
400398
<div class="col-sm-5">

minesweeper/index.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width,initial-scale=1">
6+
<title>Minesweeper</title>
7+
<script src="https://cjrtnc.leaningtech.com/4.2/loader.js"></script>
8+
<style>
9+
html, body {
10+
margin: 0;
11+
}
12+
13+
#container {
14+
width: 100vw;
15+
height: 100svh;
16+
}
17+
</style>
18+
</head>
19+
<body>
20+
<div id="container"></div>
21+
<script type="module">
22+
await cheerpjInit();
23+
cheerpjCreateDisplay(-1, -1, document.getElementById("container"));
24+
const dir = location.pathname.substring(0, location.pathname.lastIndexOf("/") + 1);
25+
await cheerpjRunJar(`/app${dir}Minesweeper.jar`);
26+
</script>
27+
</body>
28+
</html>

tictactoe/index.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width,initial-scale=1">
6+
<title>TicTacToe</title>
7+
<script src="https://cjrtnc.leaningtech.com/4.2/loader.js"></script>
8+
<style>
9+
html, body {
10+
margin: 0;
11+
}
12+
13+
#container {
14+
width: 100vw;
15+
height: 100svh;
16+
}
17+
</style>
18+
</head>
19+
<body>
20+
<div id="container"></div>
21+
<script type="module">
22+
await cheerpjInit();
23+
cheerpjCreateDisplay(-1, -1, document.getElementById("container"));
24+
const dir = location.pathname.substring(0, location.pathname.lastIndexOf("/") + 1);
25+
await cheerpjRunJar(`/app${dir}TicTacToe.jar`);
26+
</script>
27+
</body>
28+
</html>

0 commit comments

Comments
 (0)