返回
项目

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.

语言rust
难度简单
总时长1.7小时

目标学习者

这门课是给谁上的

  • For developers who are interested in the Solana ecosystem

要求

  • 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

你会学到什么

  • 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.
Random Number

课程安排

  • 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.

practice

Bulls and Cows on Solana

18 小节
移动和桌面设备访问