Skip to content

Commit 0ffb3a4

Browse files
committed
instructions for user for analysis setup
1 parent c3ad8ff commit 0ffb3a4

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

app/src/main/java/com/example/chaiss/AnalysisActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private void analyzePosition() {
131131
try {
132132
PyObject result = chessLogic1.callAttr("evaluate_position", currentFEN);
133133
String evaluation = result.toString();
134-
analysisText.setText("Evaluation: " + evaluation);
134+
analysisText.setText("Current Winning/Losing Score Evaluation: " + evaluation);
135135
} catch (Exception e) {
136136
Toast.makeText(this, "Analysis error: " + e.getMessage(), Toast.LENGTH_SHORT).show();
137137
}

app/src/main/res/layout/activity_analysis.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,22 @@
5454
app:layout_constraintEnd_toEndOf="parent"
5555
android:layout_marginTop="16dp"/>
5656

57+
<!-- Instructional Text at Bottom -->
58+
<TextView
59+
android:id="@+id/instruction_text"
60+
android:layout_width="0dp"
61+
android:layout_height="wrap_content"
62+
android:text="Set up the board how you want and we can quickly evaluate the position given the score of the sides. Simply drag and drop any piece to any square. If you want to take a piece, just drag a piece on top of another piece to capture it. A positive number indicates a winning position while a negative score indicates a losing position."
63+
android:textSize="16sp"
64+
android:textColor="@android:color/white"
65+
android:padding="16dp"
66+
android:gravity="center"
67+
app:layout_constraintTop_toBottomOf="@id/analysis_text"
68+
app:layout_constraintStart_toStartOf="parent"
69+
app:layout_constraintEnd_toEndOf="parent"
70+
app:layout_constraintBottom_toBottomOf="parent"
71+
android:layout_marginTop="16dp"/>
72+
5773
<!-- Analysis Text -->
5874
<TextView
5975
android:id="@+id/analysis_text"

0 commit comments

Comments
 (0)