Skip to content

Instantly share code, notes, and snippets.

View vinicius5581's full-sized avatar
:octocat:
Chilling

Vinicius Santana vinicius5581

:octocat:
Chilling
View GitHub Profile
import Component from '@glimmer/component';
export default class extends Component {
}
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Fun';
}
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
@vinicius5581
vinicius5581 / Tic-tac-toe.js
Last active February 1, 2021 07:25
Tic Tac Toe - Using Class - v 0.0.1
export default class TicTacToe{
constructor(el){
this.el = document.getElementById(el);
this.setupNewGame();
this.setupEventHandlers();
}
setupNewGame() {
this.gameState = [null, null, null, null, null, null, null, null, null];
this.currentPlayer = "X";

Getting Started

  1. Install dependencies
npm install
  1. Create a config.js file with Github token to link to Atlier API. If you do not have access, reference the server code to create the backened to supply the data.