PHP Classes

File: assets/js/test.js

Recommend this page to a friend!
  Classes of Stanley Aloh   Tic Tac Toe Multiplayer   assets/js/test.js   Download  
File: assets/js/test.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Tic Tac Toe Multiplayer
Manage the interactions ofTic-Tac-Toe game players
Author: By
Last change:
Date: 9 days ago
Size: 321 bytes
 

Contents

Class file image Download
function bit2array(bitNum){ let arraybit = []; for (let index = 0; index < 9; index++) { index2power = Math.pow(2, index); if((bitNum & index2power) == index2power) arraybit.push(index + 1); } return arraybit; } console.log(bit2array(256+1+4)) console.log(Math.pow(2,8));