Back
Bulls and Cows on Solana
In this course, we will learn together how to write a guessing game on Solana, including generating random numbers and the player's guessing process.
Languagerust
Skill LevelBeginner
Total Length1.7h
Intended Learners
Who’s This Course For
- For developers who are interested in the Solana ecosystem
Requirements
- Basic understanding of Rust and Anchor is recommended - At least completed the four foundational courses: Solana Basic Concepts, Rust Basic Concepts, Solana Program Development, and Introduction to Anchor Framework
- No Solana development experience is needed- this course contains the simplest and most basic procedures
What You’ll Learn
- Writing a project to implement the logic of Bulls and Cows using Rust and Anchor.
- How to configure a project, claim SOL, and get your project on-chain using Solana Playground.
Syllabus
Uint 1 - Course Intro
Introduction to Solana Guessing Game
Unit 2 - Program Initialization
This chapter will introduce how to initialize our Solana guessing game program.
Unit 3 - Random Number Generation Functions
In this chapter, you will learn how to implement random number generation functionality.”
Unit 4 - Defining Program-Related Structures
In this chapter, we will learn how to write structures to store guessing numbers and program accounts.
Unit 5 - Writing the Player Guess Method
This chapter will focus on learning how to write methods for initializing random numbers and for player guessing.
Unit 6 - Interaction
This chapter will focus on learning how to build and deploy the program, and experiencing the player interaction process.
Bulls and Cows on Solana
18 lessons
Access on mobile and desktop