https://github.com/skyf0l/firtree
Obfuscate versions of firtree
https://github.com/skyf0l/firtree
c ioccc obfuscation
Last synced: over 1 year ago
JSON representation
Obfuscate versions of firtree
- Host: GitHub
- URL: https://github.com/skyf0l/firtree
- Owner: skyf0l
- Created: 2020-10-16T16:58:31.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-19T14:29:18.000Z (over 5 years ago)
- Last Synced: 2025-01-26T13:11:51.168Z (over 1 year ago)
- Topics: c, ioccc, obfuscation
- Language: C
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Firtree
Obfuscate versions of the Epitech Firtree
## The Firtree
An ascii art resizable fir tree based on a f\*cking generating algorithm
## My programs
### Ascii art firtree in ascii art firtree
``` c
g
(s)
{;int
x=s/2;{
!~0;}
return\
s&1?(2*++
x+8)*x-3:x*
(2*x+10)+1;};
main(int x,
void**y){;int
d,i,l,O,o,_;if(
x&1||(x=atoi(1[y]
))<1){printf(!1[y]?
"Usage: %s size\n":0,
*y);return-!~1;;}
char*b;for(b=malloc
((d=g(x))+1),d/=2,o=0
;++o<=x;){for(_=d;O=0<_
;)b[--_]=32;while(++O<=3+
o){for(i=g(o)+(O-o-3)*2,_=l
=d-i/2;_
#include
#include
int main(int w, int **x, int *y, int z)
{
while ((1[*x]&1[*x]-1&&(w=atoi(x[w-(y[2<<1]=!(y[1<=*y)&&(y[4]<=(y[1]=w)&&y[3]<3+4[y]||++*(1[*x]*4+y)&(y[3]=!*x))^(y[1<<1]=-((y[1]&1?((y[1]/=2,++y[1])+4)*y[1]-1.5:((y[1]/=2)+5)*y[1]+.5)*2-(*y+=(w-(y[!x]=(~(z=4[y])&1?((z/=2)+5)*z+.5:(z/=2)*(++z+4)-1.5)*2+(++*(3+y)-3-4[y])*2))*(y[1<<2]>w)*1[*x]))/2*!!(y[y-y]+=(y[4]-w)*!(*y&1)>!y))||1)[*x])|w)
{
// code
}
return (0);
}
```
Compilation whithout warnings
```
gcc -Wno-incompatible-pointer-types -o firtree firtree_while.c
```
## Exemples
```
$ ./firtree 1
*
***
*****
*******
|
```
```
$ ./firtree 4
*
***
*****
*******
*****
*******
*********
***********
*************
***********
*************
***************
*****************
*******************
*********************
*****************
*******************
*********************
***********************
*************************
***************************
*****************************
|||||
|||||
|||||
|||||
```