-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (47 loc) · 2.45 KB
/
index.html
File metadata and controls
53 lines (47 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simplex matrix game solver</title>
<!-- TO-DO: ПОЧИСТИТЬ ГОВНО <script src="https://polyfill.io/v3/polyfill.min.js?featres=es6"></script> -->
<script id="MathJax-script" async src="static/js/prebuilt/tex-mml-chtml.js"></script>
<link rel="stylesheet" href="static/css/styles.css">
</head>
<body>
<div class="container">
<h1>🎮 Решатель матричных игр симплекс-методом по ©Кочевадову™</h1>
<div id="size-input" class="step">
<h3>Шаг 1: Размер матрицы</h3>
<label>Строки (игрок A): </label>
<input type="number" id="rows" min="2" max="6" value="3">
<label>Столбцы (игрок B): </label>
<input type="number" id="cols" min="2" max="6" value="3">
<button id="create-matrix-btn">Создать матрицу</button>
</div>
<div id="matrix-container" class="step" style="display: none;">
<h3>Шаг 2: Введите матрицу выигрышей</h3>
<div id="matrix-input"></div>
<button id="start-solving-btn">Начать решение</button>
</div>
<div id="solution-steps" style="display: none;">
<h2>Процесс решения</h2>
<div id="step-0-initial" class="step"></div>
<div id="step-1-lp-formulation" class="step"></div>
<div id="step-2-simplex-setup" class="step"></div>
<div class="iteration-controls">
<button id="prev-btn" disabled>← Предыдущая итерация</button>
<span id="iteration-counter">Итерация 0 из 0</span>
<button id="next-btn" disabled>Следующая итерация →</button>
<button id="auto-btn">Авторешение</button>
</div>
<div id="current-iteration" class="step"></div>
<div id="step-4-results" class="step"></div>
</div>
</div>
<script defer src="static/js/custom/matrix.js"></script>
<script defer src="static/js/custom/simplex.js"></script>
<script defer src="static/js/custom/ui.js"></script>
<script defer src="static/js/custom/app.js"></script>
</body>
</html>