mirror of
https://github.com/brianstrauch/solitaire-tui.git
synced 2024-11-16 07:47:52 +01:00
refactor
This commit is contained in:
parent
54ff3abb3f
commit
bff0997c87
1 changed files with 3 additions and 3 deletions
|
@ -60,9 +60,9 @@ func New() *Solitaire {
|
|||
}
|
||||
}
|
||||
|
||||
for i := 0; i < len(decks)-int(tableau); i++ {
|
||||
deck := decks[int(tableau)+i]
|
||||
for j := 0; j <= i; j++ {
|
||||
for i := int(tableau); i < len(decks); i++ {
|
||||
deck := decks[i]
|
||||
for j := int(tableau); j <= i; j++ {
|
||||
deck.Add(decks[stock].Pop())
|
||||
}
|
||||
deck.Top().Flip()
|
||||
|
|
Loading…
Reference in a new issue