Code - Game Practicum 01

a simple game practicum with raylib

這是一個簡單的使用raylib的遊戲,主要是用來練習raylib的基本功能。 因為是練習用,所脙會非常隨性,你可能會發現程式風格極為混亂!是的,我喜歡混亂,那代表著無限的可能性。 當然也會有無限的錯誤,請多多包涵。 為什麼用C語言來練習呢?C代表著最大程度的自由,你可以用任何你喜歡的方式來寫程式。 What you think. what you write code. NO LIMIT. NO strange RULES. o_O

[Read More]

Code -- Simple POKER Game

a simple POKER game with raylib

為什麼會有這個東東呢? 因為想要知道ai的研究是否好用,順著就寫了一個來測試機率。 o_O

[Read More]
c  raylib 

Poker game from GEMINI

撲克牌遊戲中各種牌型的自然機率分析報告

1. 前言

撲克牌遊戲,尤其是五張換手撲克,在全球廣受歡迎。了解遊戲中各種牌型出現的機率對於玩家制定策略至關重要。本報告旨在透過組合數學的方法,計算在一副標準的 52 張撲克牌中,隨機抽取 5 張牌時,形成各種特定牌型的自然機率,這些牌型已由使用者提供的 CardWinKind 陣列定義。本分析將基於標準的組合學原理,計算每種牌型的組合數量,並將其除以所有可能的五張牌組合總數,從而得出其發生的機率。本報告將詳細闡述每種牌型的計算過程,並總結其機率分佈。

[Read More]

Code - Lazy Graphics

為了方便繪圖測試,把sdl 3給加一層包裝,懶人專用… 使用例…

#include <stdlib.h>
#define LAZY_GRAPHIC_IMPLEMENTATION
#include "lazygraphic.h"
#include <math.h>
#include <time.h>

int main(int argc, char* argv[])
{
    RGBA bkgColor = { .color = 0xFF181818 };
    RGBA cirColor = { .color = 0xFF18D818 };
    lazyGr.Init(800, 600, "LAZY !!");
    srand(time(NULL));
    while (!lazyGr.Done()) {
        lazyGr.Clear(bkgColor);
        for (int i = 0; i < 50; i++) {
            int rx = rand() % 400;
            int ry = rand() % 300;
            int rr = rand() % 200;
            cirColor.color = rand() | 0xFF000000;
            lazyGr.Disk(400 - rr/2 + rx/2, 300 - rr/2 + ry/2 , rr, cirColor);
        }
        lazyGr.Update();
        lazyGr.Delay(16);
    }
    lazyGr.Fini();
    return 0;
}
[Read More]
c  program  sdl3 

Code - Pong Game

a simple game with raylib

為什麼會有這個東東呢? 因為想要知道ai的註解是否好用,不想寫註解的人有福了,找ai就對了。

[Read More]

Lilikoko - Gemini o_O

** Gemini 2.0 Flash Thinking Experimental

Q:

  • 1 = 5 2= 10 3 = 15 4 = 20 那麼5 = ?

顯示思路 The user is presenting a sequence of numbers on the left side of the equation and their corresponding values on the right side. The sequence is: 1 = 5 2 = 10 3 = 15 4 = 20 The user is asking to determine the value for 5 = ?.

[Read More]

Code - Line effect

Line Effect

Learning Zig programming language …

Line effect for learning zig’s struct random and raylib implementation ect. o_O

[Read More]

Code - Particle_effect

Particle Effect

Learning Zig programming language …

Particle effect for learning zig’s struct random and raylib implementation ect. o_O

[Read More]

Code - Lissajous

Lissajous figure

數學上,利薩茹曲線是兩個沿著互相垂直方向的正弦振動的合成的軌跡。

O_o

[Read More]