@@ -93,7 +93,7 @@ def lemke_howson(g, init_pivot=0, max_iter=10**6, capping=None,
9393 `init_pivot` + (m+n-1) (modulo m+n) as the initial pivot, with a
9494 limit `max_iter` on the total number of pivoting steps.
9595
96- Accoding to the simulation results for *uniformly random games*,
96+ According to the simulation results for *uniformly random games*,
9797 for medium- to large-size games this heuristics outperforms the
9898 basic Lemke-Howson algorithm with a fixed initial pivot, where
9999 [1]_ suggests that `capping` be set to 10.
@@ -124,8 +124,7 @@ def lemke_howson(g, init_pivot=0, max_iter=10**6, capping=None,
124124 nums_actions = g .nums_actions
125125 total_num = sum (nums_actions )
126126
127- msg = '`init_pivot` must be an integer k' + \
128- 'such that 0 <= k < {0}' .format (total_num )
127+ msg = f'`init_pivot` must be an integer k such that 0 <= k < { total_num } '
129128
130129 if not isinstance (init_pivot , numbers .Integral ):
131130 raise TypeError (msg )
@@ -320,7 +319,7 @@ def _lemke_howson_tbl(tableaux, bases, init_pivot, max_iter):
320319 """
321320 Main body of the Lemke-Howson algorithm implementation.
322321
323- Perform the complementary pivoting. Modify `tablaux ` and `bases` in
322+ Perform the complementary pivoting. Modify `tableaux ` and `bases` in
324323 place.
325324
326325 Parameters
0 commit comments