Learn only half of mult table
This commit is contained in:
		
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -1,2 +1,3 @@
 | 
				
			|||||||
*.pyc
 | 
					*.pyc
 | 
				
			||||||
static/.DS_Store
 | 
					.DS_Store
 | 
				
			||||||
 | 
					Archive.zip
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -115,7 +115,7 @@ class Session:
 | 
				
			|||||||
                candidates.add(correct + off)
 | 
					                candidates.add(correct + off)
 | 
				
			||||||
        # Random other table values
 | 
					        # Random other table values
 | 
				
			||||||
        while len(candidates) < 20:
 | 
					        while len(candidates) < 20:
 | 
				
			||||||
            candidates.add(random.randint(2, 10) * random.randint(2, 10))
 | 
					            candidates.add(random.randint(2, 5) * random.randint(2, 5))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Remove the correct answer and pick three unique distractors
 | 
					        # Remove the correct answer and pick three unique distractors
 | 
				
			||||||
        candidates.discard(correct)
 | 
					        candidates.discard(correct)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user