빠른 시작
Vais Tutorial - Quick Start
Installation
The tutorial is part of the Vais workspace. No additional installation needed.
Running the Tutorial
# Interactive mode (recommended)
cargo run -p vais-tutorial --bin vais-tutorial
# Or using examples
cargo run -p vais-tutorial --example tutorial_interactive
# Demo mode (see features)
cargo run -p vais-tutorial --example tutorial_demo
Essential Commands
chapters - List all chapters
start 0 0 - Start Chapter 0, Lesson 0
hint - Get a hint
solution - Show the solution
next - Move to next lesson
progress - View your progress
quit - Exit tutorial
Your First Lesson
-
Start the tutorial:
cargo run -p vais-tutorial --bin vais-tutorial -
Begin Chapter 1:
>>> start 0 0 -
Read the lesson content and try to solve it
-
Get help if needed:
>>> hint -
Check your solution:
>>> check my_solution.vaisOr verify inline:
>>> verify let answer = 42; -
Move to the next lesson:
>>> next
Learning Path
- Chapter 1: Basics (3 lessons) - Variables, functions, types
- Chapter 2: Control Flow (3 lessons) - If, loops, match
- Chapter 3: Collections (3 lessons) - Vec, HashMap, Set
- Chapter 4: Error Handling (3 lessons) - Option, Result
- Chapter 5: Advanced (3 lessons) - Structs, traits, generics
Total: 15 lessons
Tips
- Try solving each lesson yourself before using hints
- Progress is automatically saved
- You can quit anytime and resume later
- Experiment with different solutions
Getting Help
>>> help
Shows all available commands and their usage.
Testing Your Knowledge
After each chapter, try to:
- Write code without looking at solutions
- Explain concepts to yourself
- Create variations of the examples
Next Steps
After completing the tutorial:
- Explore the Vais examples directory
- Read the language documentation
- Build your own projects
- Contribute to Vais!
Happy Learning!