Yaron Koresh commited on
Commit
9c18f0d
·
verified ·
1 Parent(s): 263a4e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1261,14 +1261,14 @@ def handle_generation(h,w,d):
1261
  pxs = h*w
1262
  if pxs > 4 * (10 ** 6):
1263
  difficulty_points + 3
1264
- else if pxs > 3 * (10 ** 6):
1265
  difficulty_points + 2
1266
- else if pxs > 2 * (10 ** 6):
1267
  difficulty_points + 1
1268
 
1269
  if difficulty_points < 2:
1270
  return easy_generation(h,w,d)
1271
- else if difficulty_points < 4:
1272
  return balanced_generation(h,w,d)
1273
  else:
1274
  return hard_generation(h,w,d)
 
1261
  pxs = h*w
1262
  if pxs > 4 * (10 ** 6):
1263
  difficulty_points + 3
1264
+ elif pxs > 3 * (10 ** 6):
1265
  difficulty_points + 2
1266
+ elif pxs > 2 * (10 ** 6):
1267
  difficulty_points + 1
1268
 
1269
  if difficulty_points < 2:
1270
  return easy_generation(h,w,d)
1271
+ elif difficulty_points < 4:
1272
  return balanced_generation(h,w,d)
1273
  else:
1274
  return hard_generation(h,w,d)