mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
Fixed linked list bug (#2481)
* * fixed __getitem__() function * add test * * updated doctests * updated __setitem__() func * fixup! Format Python code with psf/black push Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import math
|
||||
|
||||
""" Minimax helps to achieve maximum score in a game by checking all possible moves
|
||||
@ -10,8 +11,9 @@ import math
|
||||
"""
|
||||
|
||||
|
||||
def minimax(depth: int, node_index: int, is_max: bool,
|
||||
scores: list[int], height: float) -> int:
|
||||
def minimax(
|
||||
depth: int, node_index: int, is_max: bool, scores: list[int], height: float
|
||||
) -> int:
|
||||
"""
|
||||
>>> import math
|
||||
>>> scores = [90, 23, 6, 33, 21, 65, 123, 34423]
|
||||
|
Reference in New Issue
Block a user