From 067b447b98a01fbfd4338c29ae5affc7edf5f9f7 Mon Sep 17 00:00:00 2001 From: TinWoodman92 Date: Mon, 15 Jan 2024 20:31:20 -0600 Subject: adding X & O vectors --- app.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app.js') diff --git a/app.js b/app.js index 158168b..3007f69 100644 --- a/app.js +++ b/app.js @@ -1,5 +1,13 @@ console.log('Hello from app.js'); +fetch('svg/x.svg') + .then(response => response.text()) + .then(fileContents => { + console.log(fileContents); + }) + .catch(error => console.error('Error reading the file:', error)); + + const turns = {true: 'X', false: 'O'}; const getXBoard = function() { -- cgit v1.2.3