$40

for 4 classes
Class

Let's Write a Sudoku Solver in Javascript!

Completed by 1 learner
Ages 13-18
Live Group Class
Students will implement the game of Sudoku in Javascript, and then build an AI that can solve all possible Sudoku puzzles in a blink! Along the way we'll cover Sudoku strategies and modern Javascript concepts.
Average rating:
5.0
Number of reviews:
(1 reviews)

Live video meetings
4x per week, 1 week
1-4 learners per class
60 min

What's included

4 live meetings
4 in-class hours

Class Experience

Sudoku is a very fun exercise that you can get lost in for hours!
In this class we'll cover how to write a Sudoku application, and then we'll implement an algorithm called "backtracking with constraint propagation" that can solve all valid Sudoku puzzles in milliseconds!
We'll also cover strategies that students can use to solve real puzzles by hand, away from the computer.

Each class will start with a short lecture and then we will all write code in our own editors on repl.it. Students will be given a Repl.it starter, and we will code together each step of the way. As we develop the code, I will help learners tackle coding issues. 

I will teach modern Javascript features and key computer science problem-solving concepts. Students will gain working experience with computer programming, including developing solutions and debugging code to produce a working application.

Pre-requisites:
• Learners should know basic javascript: variables, for loops, and objects.
• More modern Javascript notation like `for in loops`, template strings are optional but helpful. We will cover and gain experience with these.

Lesson breakdown:
Lesson 1: Introduce repl.it and we implement the rules of sudoku
Lesson 2: We learn about sudoku solving strategies, and implement two simple ones that solve easy puzzles
Lesson 3: We implement backtracking search to solve all puzzles
Lesson 4: We look at the speed of our approach, go a bit more into the theory of backtracking search and other similar AI algorithms. We look at other ways to solve sudoku, as well as possible improvements to the app they've made.

Learning Goals

Students will get solid experience programming a working application.

The algorithm we will use in this case will be backtracking with constraint propagation; a cornerstone of AI and computer science problem solving with many applications. This will require us to introduce two other important concepts: Trees and recursion.

• Several Sudoku strategies: "hidden singles", "naked pairs", "hidden pairs", and the venerable "X-Wing"

We'll use many of these advanced JS concepts:
• Several collections: arrays, objects, sets
• For of loops
• Arrow functions
• map and filter functions

Other Details

External Resources
In addition to the Outschool classroom, this class uses:

Meet the teacher

Joined July, 2020
5.0
1reviews
Profile
Teacher expertise and credentials
Hi there! My name is Amédée d'Aboville, I go by they/them.

I have a BSc in Computer Science and have been working professionally as a software developer for 6 years. During the day, I work at Outschool, programming this very website! 

I want to show off the beauty and fun of computers. While coding seems very abstract and detached, it's a very creative endeavor with many possibilities!

My teaching is around building things that are fun to use as we are building them, while elucidating topics that might be tricky. My ideal teaching experience is when learners don't notice that they are tackling difficult problems because they are so engaged with the task at hand.

Reviews

Parents also liked
Let's Write a Story: Prompt, Write & Share!
Ms. Jackson of "Ms. Jackson's Theatre!"
4.9
(245)
$9 per class
Next session at 4 PM today
Group Class
1/wk, 30 min
9-12
Let's Write a Medieval Story!
Teacher Kandy
5.0
(24)
$15 per session
1-on-1 Tutoring
On Demand
7-11
Let's Write a Book! Authors' Club (Ongoing)
Crystal Roze
4.9
(40)
$15 per class
Next session at 5:15 PM on Saturday
Group Class
1/wk, 1 hr
11-16
Creative Writing Basics and Beyond: Let's Write a Bestseller!
Teacher Kristin BA TEFL TESL
5.0
(46)
$14 per class
Next session at 1:50 PM on Monday
Group Class
1/wk, 45 min
9-14
Let's Write a Novel!: A Tailored 1:1 Creative Writing Class for Aspiring Authors
Milan
5.0
(55)
$172 per session
1-on-1 Tutoring
On Demand
5-18
Let's Write: Creative Writing - Write a Story Using Pictures
Let's Go Learning!
4.8
(3,906)
$12 per class
Next session at 4:20 PM on Monday
Group Class
1/wk, 35 min
6-11
1-on-1 Writing Tutoring: Grammar/Vocab/Sentence Structure. Let’s Write Together!
Teacher Amy M.S.
4.9
(54)
$95 per session
1-on-1 Tutoring
On Demand
5-16
Let's Write & Recite Tongue Twisters! (1 time class)
Rachel Larson
4.8
(87)
$7 per class
Next session at 11:30 PM on Thu 5/22
Group Class
1 wk, 1/wk, 25 min
5-8
"Let's Write a Story!" Creation to Publication
Beyond-the-Norms
5.0
(34)
$60 per session
1-on-1 Tutoring
On Demand
6-18
Let's Write That Story! Private 1 on1 Creative Writing Tutoring/Workshop Session
Tirath K Sandhu
4.9
(81)
$18 per session
1-on-1 Tutoring
On Demand
13-18
Let's Study: How to Write a Paragraph
Let's Go Learning!
4.8
(3,906)
$15 per class
Next session at 1 PM on Monday
Group Class
1 wk, 1/wk, 35 min
7-12
"Let's Write a Story!" Creative Writing Clinic for Young Resistant Writers
Beyond-the-Norms
5.0
(34)
$50 per session
1-on-1 Lessons
On Demand
4-10
How to Write a Novel
Maura Atwood
4.8
(95)
$30 per session
1-on-1 Lessons
On Demand
11-18
Learn to Write a Paragraph
Liz Wann, B.A.
$15 per class
Next session at 1 PM on Saturday
Group Class
1 wk, 1/wk, 35 min
9-12
How to Write a Great Essay/Paper
Maddie Alvendia, B.A., E.d.M.
$15 per class
Next session at 12 AM on Tue 6/17
Group Class
6 wks, 1/wk, 45 min
10-14
Creative Writing Camp: Write a Daily Short Story
WordPlay Writing Co. | Jackson Pearce
4.9
(1,898)
$26 per class
Next session at 5 PM on Monday
Group Class
5/wk, 55 min
13-18
See More Classes
Home
Search
Give a Gift Card
Open currency, time zone, and language settings
Language & Region
Log In