Nest framework TypeScript starter repository.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
- Get everyone up and running with tic-tac-toe project
- Talk about git/github
- Cover Javascript fundamentals
- Start coding
- Open the floor to questions
- Show example code and talk about other possible implementations
- Try to get code complete on tic-tac-toe
- Minimax function
- depth/timing
- https://en.wikipedia.org/wiki/Minimax
- alpha/beta pruning (https://en.wikipedia.org/wiki/Alpha%E2%80%93beta_pruning)
- Start working on battle1 project
- https://flappybird.io/
- Attempt to finish work on battle1
- http://www.gameaipro.com/GameAIPro/GameAIPro_Chapter09_An_Introduction_to_Utility_Theory.pdf
- Start work on battle2
- https://www.tensorflow.org/js/demos
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference
let x = 'I am a string'
let x = "I am also a string"
let x = 1
let x = 2.123
let x = [1, 2, 3, 4]
let x = ['a', 'b', 'c', 'd']
let x = [
[1, 2, 3, 4],
[5, 6, 7, 8]
]
let x = {
name: "value",
name1: "value1",
pancake: [
"wonderful",
"tasty"
],
myKey: {
name: "name"
}
}
if(x == "hello") {
alert("the string x is equal to hello")
} else {
alert("the string doesn't equal hello")
}
let x = [1, 2, 3, 4]
for(let y = 0; y < 4; y++) {
alert(x[y]) // 2
}
Functions are reusable pieces of code that can be called with input and return values
This function takes one parameter and doesn't return any value
function myFunction(name) {
alert("hello " + name )
}
This function takes no parameters and returns a string value
function myFunction() {
return "my string return value";
}
Assign a function to a variable, then call it
let x = function() {
alert("I've been called!!!");
}
x();