Skip to content
Snippets Groups Projects
Commit c2f62755 authored by De Brettes Thomas's avatar De Brettes Thomas
Browse files

a

parent 3120ffc5
No related branches found
No related tags found
No related merge requests found
...@@ -112,7 +112,9 @@ function highlightMoves(piece, row, col) { ...@@ -112,7 +112,9 @@ function highlightMoves(piece, row, col) {
moves.push({ row: row + direction, col }); moves.push({ row: row + direction, col });
} }
} }
if (piece.toLowerCase() === "t") {
}
return moves; return moves;
......
...@@ -3,7 +3,7 @@ var fs = require('fs'), ...@@ -3,7 +3,7 @@ var fs = require('fs'),
path = require('path'); path = require('path');
var server = http.createServer(function (request, response) { var server = http.createServer(function (request, response) {
var filePath = path.join(__dirname, 'htdocs', request.url === '/' ? 'page_acceuil.html' : request.url); var filePath = path.join(__dirname, 'htdocs', request.url === '/' ? 'page_jeu.html' : request.url);
fs.readFile(filePath, function (err, data) { fs.readFile(filePath, function (err, data) {
if (err) { if (err) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment