Skip to content

Commit

Permalink
Added Vienna Gambit as opening
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-bovet committed May 9, 2021
1 parent 1b5d8f2 commit ce7ad22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions BChess/Openings.pgn
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@
[Score "58"]
[Name "Ruy López Opening: Morphy Defense, Columbus Variation, 4...Nf6"]
1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Ba4 Nf6 *

[Name "Vienna Gambit"]
1. e4 e5 2. Nc3 Nf6 3. f4 d5 4. fxe5 Nxe4 5. Qf3 Nxc3 (5... f5) *
10 changes: 6 additions & 4 deletions Shared/Views/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,17 @@ struct ContentView: View {
ColorInformationView(document: $document, isWhite: document.rotated ? false: true)
}

VStack {
AnalyzeActionsView(document: $document)
.hide(document.state == .play)
VStack(alignment: .leading) {
if (document.state != .play) {
AnalyzeActionsView(document: $document)
.hide(document.state == .play)
}

if (showInfo) {
InformationView(document: document)
.frame(minWidth: 250, idealWidth: 250, maxWidth: 300, alignment: .center)
}
}
.frame(minWidth: 250, idealWidth: 250, maxWidth: 250, alignment: .leading)
}
.padding()
.toolbar {
Expand Down

0 comments on commit ce7ad22

Please sign in to comment.