necocen / four-fours-go

Solve four-fours with Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Four fours calculator

0 = 44-44
1 = 44/44
2 = 4-(4+4)/4
3 = (4+4+4)/4
4 = 4+4*(4-4)
5 = (4+4*4)/4
6 = 4+(4+4)/4
7 = 44/4-4
8 = 4+4+4-4
9 = 4+4+4/4
10 = (44-4)/4

How to play

go run ./cmd/four-fours      # This prints ordinary four-fours
go run ./cmd/four-fours 9999 # This prints four-nines

About

Solve four-fours with Go


Languages

Language:Go 100.0%