Commit 16f31c48 authored by Joris Kuipers's avatar Joris Kuipers
Browse files

Some small updates

* Update Spring Boot version to latest release (1.5.9)
* Update Material Design Lite to 1.3.0
* Rename controller class
parent aead0665
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* *As* a player *I want* to play Tic-Tac-Toe against the computer *so that* I can entertain myself. * *As* a player *I want* to play Tic-Tac-Toe against the computer *so that* I can entertain myself.
* **Acceptance criteria** * **Acceptance criteria**
* The user and the computer take turns playing. * The user and the computer take turns playing.
* The first player to achieve three-in-row wins. * The first player to achieve three-in-a-row wins.
* Three-in-a-row can be horizontal, vertical or diagonal. * Three-in-a-row can be horizontal, vertical or diagonal.
* When the game ends a new game can be started. * When the game ends a new game can be started.
* The achieved score is registered. * The achieved score is registered.
...@@ -48,6 +48,6 @@ ...@@ -48,6 +48,6 @@
* **column**: int * **column**: int
* **row**: int * **row**: int
* Feel free to introduce new technologies as part of your implementation: * Feel free to introduce new technologies as part of your implementation:
* For instance, use AngularJS for the presentation and client-side components, * For instance, use Angular for the presentation and client-side components,
or use a server-side templating framework like Thymeleaf instead. or use a server-side templating framework like Thymeleaf instead.
* The application can simply be started from your IDE, or by using the Maven command ```mvn spring-boot:run``` * The application can simply be started from your IDE, or by using the Maven command ```mvn spring-boot:run```
\ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.2.RELEASE</version> <version>1.5.9.RELEASE</version>
</parent> </parent>
<properties> <properties>
......
...@@ -5,7 +5,7 @@ import org.springframework.web.bind.annotation.RequestParam; ...@@ -5,7 +5,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
public class RestLogicController { public class GameLogicController {
@PostMapping("/executeTurn") @PostMapping("/executeTurn")
public String move(@RequestParam boolean turn, @RequestParam int column, @RequestParam int row) { public String move(@RequestParam boolean turn, @RequestParam int column, @RequestParam int row) {
......
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
<html> <html>
<head> <head>
<link rel="stylesheet" href="https://storage.googleapis.com/code.getmdl.io/1.0.0/material.blue-pink.min.css"/> <!-- Material Design Lite contents: see https://getmdl.io/ -->
<script src="https://storage.googleapis.com/code.getmdl.io/1.0.0/material.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"/> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"/>
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.blue-pink.min.css">
<script defer src="https://storage.googleapis.com/code.getmdl.io/1.3.0/material.min.js"></script>
<link rel="stylesheet" href="/css/styles.css" /> <link rel="stylesheet" href="/css/styles.css" />
<script src="/js/init.js"></script> <script src="/js/init.js"></script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment