7th Guest Germ Game

by

 

The microscope game from 7th guest with simple 'AI'.

makeboard(A)
function [] = makeboard(A)

groen=imread('green.jpg');
blauw=imread('blue.jpg');
leeg=imread('empty.jpg');

pic=uint8(zeros(280,280,3));
for i=1:7
    for j=1:7
        switch A(i,j)
            case 0
                pic(((i-1)*40+1):(i*40),((j-1)*40+1):(j*40),:)=leeg;
            case 1
                pic(((i-1)*40+1):(i*40),((j-1)*40+1):(j*40),:)=blauw;
            case -1
                pic(((i-1)*40+1):(i*40),((j-1)*40+1):(j*40),:)=groen;
        end
    end
end
figure(1)
imshow(pic)

Contact us