hackquest logo
  • Learn
  • Explore Course
  • Build
  • Explore Hackathon
  • Project Archive
  • Community
  • Forum
  • Global Event
  • My Community
  • Co-learning
  • Organization Hub
  • More
    • Glossary
    • Blog
    • Faucet
    • Job Station
    • Press Kit
    • Founder
hackquest logo
Back

Building a 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.

Building a Bulls and Cows on Solana

Language

Rust

Total Length

1.7h

Part of Learning Track

Build on Solana + 1

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.

Random Number

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.

Language

Rust

Total Length

1.7h

Part of Learning Track

Build on Solana + 1