Commit Graph

1036 Commits

Author SHA1 Message Date
spelgubbe
b2edea0ce3 Add comments to minimax (#7) 2022-03-07 02:01:10 +08:00
spelgubbe
7dccbaa440 Add basic minimax documentation (#5) 2022-03-06 20:20:25 +08:00
spelgubbe
b8a5d0d7fc Fix minimax bug (#3)
Changes findBestMove and minimax to be correct regardless of player associated
with a game state. Adds to the GameNode interface a required method getMove,
which should return the move which caused the game state defined by the GameNode.

Adds a test which exemplifies the previous issue and a few tests checking
the functionality of minimax when used on a Tic Tac Toe game.
2022-03-06 05:32:17 +08:00
spelgubbe
d0cc1029ec Make GameNode abstract (#1)
Old GameNode is called TicTacToeGameNode as it is used to represent tic tac toe game states.
The idea is that any game implementing the GameNode interface should be able to use the
Minimax algorithm.
2022-03-06 05:28:54 +08:00
nichujie
a41a2747ce Complete minimax algorithm and relevant classes 2022-03-04 17:18:37 +01:00
Jakob Kratz
33695ce766 Add minimax algorithm logic
Heuristic and game state definition still missing. No tests yet.
2022-03-03 19:35:37 +01:00
Oleksii Trekhleb
b2427d0e18 Help Ukraine 2022-03-01 18:31:32 +01:00
Oleksii Trekhleb
c89388445e Help Ukraine 2022-03-01 18:26:25 +01:00
Oleksii Trekhleb
7a37a6b86e Add more followup links for Max Subarray problem. 2022-02-04 08:57:25 +01:00
Oleksii Trekhleb
82f0b5edf0 Add a Divide and Conquer version of the MaxSubArray problem. 2022-02-04 08:56:15 +01:00
Oleksii Trekhleb
819f38f792 Some text fixes. 2022-01-27 21:05:22 +01:00
서다솔
294eb3c53f
Add merge sort document in Korean (#632)
* Add merge sort doc in Korean

* Update README.md
2022-01-27 21:04:41 +01:00
Lucas De Angelis
0006350cc7
French translation for module "Graph" (#634)
The first part of the translation is a direct translation of the
english part. The second is too, although it wasn't done by me
but by wikipedia contributors (the second paragraph of the
English wikipedia introduction is exactly the same as the first
paragraph of the French wikipedia "Description")

Add french version redirection on the README.md. The french
version is placed before the portuguese version to have a
cleaner diff (no trailing commas to edit)
2022-01-27 21:03:48 +01:00
Antonio Gonzalez Capel
8d0f300aa5
Update README.es-ES.md (#628)
Co-authored-by: Oleksii Trekhleb <trehleb@gmail.com>
2022-01-27 21:03:12 +01:00
0xFF
3038c77a8c
fix error (#637) 2022-01-27 21:02:10 +01:00
TheJang
cadee14053
Fix: spacing word (#639) 2022-01-27 21:01:42 +01:00
DS Park
3fa19670f2
Add Korean translation. (#644)
* Translate the Heap README to Korean.

* Translate Priority Queue's README to Korean

* Translate Kruskal Algorithm's README into Korean.

* fix typo

* Translate the Dijkstra README to Korean.

Co-authored-by: cckn <pds@enitt.co.kr>
Co-authored-by: Oleksii Trekhleb <trehleb@gmail.com>
2022-01-27 21:00:45 +01:00
MrBrain295
677862540e
Change Copy Write to 2021 (#652)
Change Copy Write to 2021 from 2018.
2022-01-27 20:57:33 +01:00
m11o
82680c03ee
fix small modification in README.ja-JP.md (#651) 2022-01-27 20:56:33 +01:00
Felipe Veronezi Peters
47d5c8f744
Add pt-BR translation to search/linear-search (#663) 2022-01-27 20:56:02 +01:00
Felipe Veronezi Peters
8bd329d5e5
Add pt-BR translation to search/binary-search (#664) 2022-01-27 20:55:13 +01:00
Felipe Veronezi Peters
ef50238eba
Add pt-BR translation to sorting/selection-sort (#665) 2022-01-27 20:54:40 +01:00
Perry
61f2d192f6
Update breadthFirstSearch.js (#666)
fix comment
2022-01-27 20:53:42 +01:00
Trang Nguyen
945e7c384e
Add Vietnamese translation (#667)
Co-authored-by: Oleksii Trekhleb <trehleb@gmail.com>
2022-01-27 20:52:47 +01:00
Marcio Flavio
b816825232
Adding single quotes type to editorconfig (#670) 2022-01-27 20:46:06 +01:00
Darío Hereñú
9083fe12f6
Typos fixed (lines 81, 130, 166, 248) (#668) 2022-01-27 20:44:03 +01:00
szhou
f0ec1395c1
Update README.zh-CN.md (#685) 2022-01-27 20:40:50 +01:00
H2rmone
8e8f28ffcf
Use exist method to be consistent with Stack (#708) 2022-01-27 20:36:39 +01:00
Aldo Salas
d227646201
Fixing typos in Linked List README.es-ES.md (#710)
Co-authored-by: Oleksii Trekhleb <trehleb@gmail.com>
2022-01-27 20:33:47 +01:00
Kim Chan
1c4e02879a
fix: LinkedList test (#712) 2022-01-27 20:31:19 +01:00
tusba
d581548b4c
Fix a typo in linked list's "ru" readme (#723)
Deletion time complexity from O(1) to O(n)
2022-01-27 09:51:29 +01:00
tusba
c2e5b3d5f1
Fix error in Queue definition from README.ru-RU.md (#726) 2022-01-27 09:50:47 +01:00
Rafael Araújo
80649156ea
Created Quicksort documentation in pt-BR (#735)
Co-authored-by: Oleksii Trekhleb <trehleb@gmail.com>
2022-01-27 09:49:11 +01:00
tusba
7ef78c48aa
Typos in a doubly linked list's "ru" readme (#724) 2022-01-26 20:57:01 +01:00
Oleksii Trekhleb
1216d00937 Restructure the Big O Notation table. 2022-01-26 20:53:22 +01:00
Oleksii Trekhleb
9ca459ff65 Fix lint issue. 2022-01-26 20:50:39 +01:00
rmagillxyz
2a49b7045a
Add type name to Big O table (#717) 2022-01-26 20:38:56 +01:00
Muhammed Erdinç
aa0f47ed65
Linked list turkish readme (#739)
* added README.tr-TR.md for linked-list

* added gap

* linked list description edited.
2022-01-26 20:36:54 +01:00
Muhammed Erdinç
c1b2e893ff
Factorial turkish readme (#740)
* added turkish readme for factorial

* Added redirect link to Turkish document.
2022-01-26 20:35:45 +01:00
observer.js
00887c2d40
[ID] Minor Improvements (#742)
* fix: `menghapus` typo

should be `menghapus` instead of `mengahpus`

* fix: translations

Should be `algoritma` instead of `algoritme`.
etc is in EN, replace it with `dan lain-lain` (etc in ID)

* fix: adding space to z-algorithm

since Z is the name of the algorithm.

Co-authored-by: Oleksii Trekhleb <trehleb@gmail.com>
2022-01-26 20:35:01 +01:00
qiugu
7f7e4eae3e
feat: add linkedList insert method (#774)
Co-authored-by: byj <youjia.bi@weimob.com>
2022-01-26 20:29:51 +01:00
Oleksii Trekhleb
5b64117a2c Fex READMEs. 2022-01-25 17:56:34 +01:00
Sewook Han
d0c359e990
Add Korean translation (#752)
* Add Korean translation

* Add link to Korean translation in Queue README.
2022-01-25 17:54:01 +01:00
Sewook Han
d11f7fadd6
Add Korean translation (#767)
Co-authored-by: Oleksii Trekhleb <trehleb@gmail.com>
2022-01-25 17:48:56 +01:00
Anton Kazarinov
5a83ecc00d
fixed spelling error for hash-table (ru) (#775) 2022-01-25 10:04:32 +01:00
OscarRG
c29b12ee3b
fix typos (#771) 2022-01-25 10:03:19 +01:00
Bravo Yeung
5dc17089bc
Correct inaccurate Chinese translation. (#768) 2022-01-25 10:02:35 +01:00
OscarRG
ae915372d9
fix typos (#773) 2022-01-25 09:39:11 +01:00
Suman kumar
40c54d8354
Updating a typo in " Get bit" section (#777)
typo- ADD-> AND operation
2022-01-25 09:37:30 +01:00
kyong4
cc26b93f31
Grammar change and "Block " to "Jump" (#780)
* Grammar change and "Block " to "Jump" 

ジャンプ is jump in katakana

* Update README.ja-JP.md

* Update README.ja-JP.md
2022-01-25 09:36:45 +01:00