Skip to content

Commit

Permalink
Merge pull request #6 from utastudents/main
Browse files Browse the repository at this point in the history
Updating branch to current version of main
  • Loading branch information
NotVeridion authored Apr 14, 2024
2 parents fb01091 + 0e60a95 commit 169bbe4
Show file tree
Hide file tree
Showing 94 changed files with 8,312 additions and 80 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
ssh production 'echo "Environment=VERSION=\"${{ github.sha }}\"" >>.config/systemd/user/${{ vars.SERVICE_NAME }}.service'
ssh production 'echo "Environment=WEBSOCKET_PORT=${{ vars.WEBSOCKET_PORT }}" >>.config/systemd/user/${{ vars.SERVICE_NAME }}.service'
ssh production 'echo "Environment=HTTP_PORT=${{ vars.HTTP_PORT }}" >>.config/systemd/user/${{ vars.SERVICE_NAME }}.service'
ssh production 'echo "ExecStart=mvn exec:java -Dexec.mainClass=uta.cse3310.App" >> .config/systemd/user/${{ vars.SERVICE_NAME }}.service'
ssh production 'echo "ExecStart=mvn exec:java -Dexec.mainClass=com.cse3310.App" >> .config/systemd/user/${{ vars.SERVICE_NAME }}.service'
ssh production 'echo "WorkingDirectory=$PWD/${{ github.event.repository.name }}" >> .config/systemd/user/${{ vars.SERVICE_NAME }}.service'
ssh production 'echo "[Install]" >>.config/systemd/user/${{ vars.SERVICE_NAME }}.service'
ssh production 'echo "WantedBy=default.target" >>.config/systemd/user/${{ vars.SERVICE_NAME }}.service'
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<!-- Fonts -->
<!-- <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Chivo Mono"> -->
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="../bootstrap-5.3.3-dist/css/bootstrap.css">
<link rel="stylesheet" href="../bootstrap-5.3.3-dist/css/styling.css">
<link rel="stylesheet" href="bootstrap-5.3.3-dist/css/bootstrap.css">
<link rel="stylesheet" href="bootstrap-5.3.3-dist/css/styling.css">
<!--suppress JSUnresolvedLibraryURL -->
<link rel="stylesheet" href="../bootstrap-5.3.3-dist/aos/aos-next/src/sass/aos.scss" />
<link rel="stylesheet" href="bootstrap-5.3.3-dist/aos/aos-next/src/sass/aos.scss" />
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />

</head>
Expand Down Expand Up @@ -160,10 +160,10 @@ <h1>LEADERBOARD</h1>



<script src="../bootstrap-5.3.3-dist/js/bootstrap.js"></script>
<script src="../bootstrap-5.3.3-dist/js/js.js"></script>
<script src="bootstrap-5.3.3-dist/js/bootstrap.js"></script>
<script src="bootstrap-5.3.3-dist/js/js.js"></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script src="../bootstrap-5.3.3-dist/js/usernameValidation.js"></script>
<script src="bootstrap-5.3.3-dist/js/usernameValidation.js"></script>

<script>AOS.init();</script>
<script src="usernameValidation.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<version>4.13.1</version>
<scope>test</scope>
</dependency>

Expand Down
18 changes: 18 additions & 0 deletions src/main/java/com/cse3310/App.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.cse3310;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.InetSocketAddress;
Expand All @@ -16,6 +17,7 @@
import java.util.Timer;
import java.util.TimerTask;
import java.util.Vector;
import java.util.ArrayList;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
Expand All @@ -24,6 +26,7 @@ public class App extends WebSocketServer
{
Vector<Game> ActiveGames = new Vector<Game>();
int GameID;


public App(int port){
super(new InetSocketAddress(port));
Expand Down Expand Up @@ -91,6 +94,21 @@ public void onStart() {
}

public static void main(String[] args) {
String filename = "words.txt";
//Read in file of words
ArrayList<String> wordList = new ArrayList<>();
try(BufferedReader br = new BufferedReader(new FileReader(filename)))
{
String line;
while((line = br.readLine()) != null)
{
wordList.add(line.trim());
}
}
catch (IOException e)
{
System.err.println("Error reading file:"+ e.getMessage());
}
// Set up the http server
try{
String envPort = System.getenv("HTTP_PORT");
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/cse3310/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
public class Game{
private ArrayList<User> users;
public int GameId;
public int[][] grid;
public char[][] grid;

public Game()
public Game(ArrayList words)
{
grid = new char[50][50];

}

Expand Down
Binary file modified target/classes/com/cse3310/App.class
Binary file not shown.
Binary file modified target/classes/com/cse3310/Coordinate.class
Binary file not shown.
Binary file modified target/classes/com/cse3310/Game.class
Binary file not shown.
Binary file modified target/classes/com/cse3310/HttpServer$1.class
Binary file not shown.
Binary file modified target/classes/com/cse3310/HttpServer.class
Binary file not shown.
Binary file modified target/classes/com/cse3310/Locations.class
Binary file not shown.
Binary file modified target/classes/com/cse3310/ServerEvent.class
Binary file not shown.
Binary file modified target/classes/com/cse3310/User.class
Binary file not shown.
Binary file modified target/classes/com/cse3310/UserEvent.class
Binary file not shown.
Binary file removed target/cse3310-wordsearch.jar
Binary file not shown.
4 changes: 0 additions & 4 deletions target/maven-archiver/pom.properties

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
com/cse3310/Locations.class
com/cse3310/Coordinate.class
com/cse3310/ServerEvent.class
com/cse3310/Locations.class
com/cse3310/HttpServer.class
com/cse3310/HttpServer$1.class
com/cse3310/UserEvent.class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/workspaces/cse3310_sp24_group_26/src/main/java/com/cse3310/HttpServer.java
/workspaces/cse3310_sp24_group_26/src/main/java/com/cse3310/Coordinate.java
/workspaces/cse3310_sp24_group_26/src/main/java/com/cse3310/ServerEvent.java
/workspaces/cse3310_sp24_group_26/src/main/java/com/cse3310/UserEvent.java
/workspaces/cse3310_sp24_group_26/src/main/java/com/cse3310/User.java
/workspaces/cse3310_sp24_group_26/src/main/java/com/cse3310/UserEvent.java
/workspaces/cse3310_sp24_group_26/src/main/java/com/cse3310/Locations.java
/workspaces/cse3310_sp24_group_26/src/main/java/com/cse3310/App.java

This file was deleted.

This file was deleted.

58 changes: 0 additions & 58 deletions target/surefire-reports/TEST-com.cse3310.AppTest.xml

This file was deleted.

4 changes: 0 additions & 4 deletions target/surefire-reports/com.cse3310.AppTest.txt

This file was deleted.

Binary file removed target/test-classes/com/cse3310/AppTest.class
Binary file not shown.
Loading

0 comments on commit 169bbe4

Please sign in to comment.