This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------DATE CHECK------------------------------------- | |
// Returns if a given string date is valid. Months, days and years have the normal | |
// numeration starting from 1 | |
// Valid formats for the string date: dd-mm-yy / dd/mm/yy / dd mm yy | |
function checkDate(dateString){ | |
var dateStringParsed = parseDate(); | |
if(dateStringParsed === null){ | |
return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void horseMov(int *position){ | |
int row = position[0]; | |
int col = position[1]; | |
int straightMov = 2; | |
int bendMov = 1; | |
//Moves with +- 2 col positions and +- 1 row positions | |
if(col + straightMov < COLS){ | |
if(row - bendMov >= 0 && board[row - bendMov][col + straightMov] == EMPTY){ | |
board[row - bendMov][col + straightMov] = MOVEMENT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt){ | |
require("load-grunt-tasks")(grunt); | |
grunt.initConfig({ | |
"babel": { | |
options: { | |
sourceMap: true | |
}, | |
dist: { | |
files: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", |