View custom_main.js
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
"use strict"; | |
//========== | |
// JavaScript | |
// Window | |
window.onload = (e)=>{ | |
// Enigma | |
const enigma = new Enigma(); |
View custom_main.js
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
"use strict"; | |
//========== | |
// JavaScript | |
const WIDTH = 320; | |
const HEIGHT = 480; | |
const ROWS = 11; | |
const COLS = 7; |
View custom_main.js
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
"use strict"; | |
//========== | |
// JavaScript | |
// Window | |
window.onload = (e)=>{ | |
// CalcManager | |
const cMng = new CalcManager(); |
View custom_main.js
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
"use strict"; | |
//========== | |
// JavaScript | |
const ST_VAL1 = 1;// 値1状態 | |
const ST_VAL2 = 2;// 値2状態 | |
let state, val1, val2, op; |
View main.js
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
"use strict"; | |
//========== | |
// 経路探索処理2 | |
// A*アルゴリズム | |
const C_SIZE = 320;// キャンバスの大きさ | |
const ROWS = 11; // 迷路の大きさ(行数) | |
const COLS = 11; // 迷路の大きさ(列数) |
View main.js
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
"use strict"; | |
//========== | |
// 経路探索処理1 | |
// マンハッタン距離 | |
const C_SIZE = 320;// キャンバスの大きさ | |
const ROWS = 11; // 迷路の大きさ(行数) | |
const COLS = 11; // 迷路の大きさ(列数) |
View main.js
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
console.log("Hello, JavaScript!!"); | |
// RSA暗号を使ってみる | |
// 大きな素数による素因数分解が困難であることを安全性の根拠としている | |
// 1, 素数を2つ用意する | |
const p = 11; | |
const q = 19; | |
console.log("素数p:", p, " 素数q:", q); |
View main.js
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
console.log("Hello, JavaScript!!"); | |
// DSA署名を使ってみる | |
// 離散対数問題と呼ばれる数学上の問題を安全性の根拠としている | |
// 1, 素数を3つ用意する | |
const p = 23n; | |
const q = 11n;// qは、p-1で割り切れる数 | |
const g = 2n; // g^q mod pが、1になる様な数 | |
console.log("素数p:", p, " 素数q:", q); |
View custom_sketch.js
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
"use strict"; | |
//========== | |
// JavaScript | |
let canvas, ctx, rMng; | |
// Window | |
window.onload = (e)=>{ | |
// Canvas |
View custom_sketch.js
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
"use strict"; | |
//========== | |
// JavaScript | |
let canvas, ctx, rMng; | |
// Window | |
window.onload = (e)=>{ | |
// Canvas |
NewerOlder