Showing 1,970 of 1,970 total issues
Function press_ficha2_1
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def press_ficha2_1(self):
if self.estado == -1:
if self.turno == 1:
if self.tablero_matriz[0][0] == -1:
self.tablero_matriz[0][0] = 1
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function press_ficha2_5
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def press_ficha2_5(self):
if self.estado == -1:
if self.turno == 1:
if self.tablero_matriz[1][1] == -1:
self.tablero_matriz[1][1] = 1
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function press_ficha2_8
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def press_ficha2_8(self):
if self.estado == -1:
if self.turno == 1:
if self.tablero_matriz[2][1] == -1:
self.tablero_matriz[2][1] = 1
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function press_ficha1_5
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def press_ficha1_5(self):
if self.estado == -1:
if self.turno == 0:
if self.tablero_matriz[1][1] == -1:
self.tablero_matriz[1][1] = 0
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function press_ficha1_8
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def press_ficha1_8(self):
if self.estado == -1:
if self.turno == 0:
if self.tablero_matriz[2][1] == -1:
self.tablero_matriz[2][1] = 0
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function nadie_gano
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def nadie_gano(self):
for i in range(3):
for j in range(3):
if self.tablero_matriz[i][j] == -1:
return False
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function esta_en_sesion_interactiva
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def esta_en_sesion_interactiva():
"""Indica si pilas se ha ejecutado desde una consola interactiva de python."""
import sys
try:
cursor = sys.ps1
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function press_ficha1_2
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def press_ficha1_2(self):
if self.estado == -1:
if self.turno == 0:
if self.tablero_matriz[0][1] == -1:
self.tablero_matriz[0][1] = 0
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function press_ficha2_4
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def press_ficha2_4(self):
if self.estado == -1:
if self.turno == 1:
if self.tablero_matriz[1][0] == -1:
self.tablero_matriz[1][0] = 1
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function press_ficha2_9
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def press_ficha2_9(self):
if self.estado == -1:
if self.turno == 1:
if self.tablero_matriz[2][2] == -1:
self.tablero_matriz[2][2] = 1
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"