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]

Casino - Gamblers

大多數(如果不是全部的話)賭徒都是迷信的。他們有幸運日,幸運的衣服,幸運的數字,無論什麼 - 總是有一個明顯的原因來贏得或失去。因此,第一張圖表的好成績是因為玩家的幸運T恤(它是藍色,他的幸運顏色),但是當他無意中交叉雙腿時,一切都出了問題。此外,他一定不要忘記明天在進入賭場之前做他的幸運儀式。

[Read More]

Code - Speiral

質數

  • 質數是上帝用來描寫宇宙的文字…伽俐略語

質數,又稱為素數,是不能被1和本身以外其他整數整除的整數。如:2,3,5,7,11,13,17是前幾固質數,其中2是唯一的偶質數。

鳥蘭現象

把質數按照反時針方式排列成螺旋形式,會出現擠成一直線的特性。

O_o

[Read More]