Questions tries
This commit is contained in:
parent
095f3ad40d
commit
f0ee075f7a
14 changed files with 88 additions and 12 deletions
|
|
@ -11,6 +11,9 @@ var tries: int
|
|||
func questions_anwsered() -> bool:
|
||||
return float(correctness.count(true))/len(correctness) >= 0.6
|
||||
|
||||
func test_failed() -> bool:
|
||||
return float(correctness.count(true))/len(correctness) < 0.6
|
||||
|
||||
func save():
|
||||
var path: String = OS.get_system_dir(OS.SYSTEM_DIR_DESKTOP) + "/" + current_lab.lab_name + "-" + Time.get_datetime_string_from_system() + ".txt"
|
||||
var file = FileAccess.open(path,FileAccess.WRITE)
|
||||
|
|
@ -30,6 +33,8 @@ func save():
|
|||
else:
|
||||
file.store_string(("+" if correctness[i] else "-").lpad(10))
|
||||
file.store_line("")
|
||||
file.store_line("Попыток: " + str(tries))
|
||||
file.store_line("")
|
||||
file.store_line("Ход работы:")
|
||||
file.store_string(LabLogger.instance.text)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue