Comments (33)
fare una funzione (magari in un modulo) pareva brutto?
from ncurses.
from ncurses.
from ncurses.
- si scrive draw con la 'a'
- perché metti il controllo sui colori in init() e start_color in square()
from ncurses.
from ncurses.
init_pair(1, COLOR_BLACK, COLOR_WHITE);
init_pair(2, COLOR_BLACK, COLOR_GREEN);
devi spostare queste righe, fanno parte dell'inizializzazione (poi ti spiego meglio)
from ncurses.
quindi ora viene chiamata prima start_color() e poi viene fatto il controllo se ci sono i colori
from ncurses.
from ncurses.
non ci siamo
from ncurses.
from ncurses.
non ha senso che init_scr() non sia la prima funzione chiamata
from ncurses.
ti stai perdendo in un bicchier d'acqua. perché non fai una sola funzione di inizializzazione?
quello che mi interessava di questo programma era farti creare un modulo per la stampa di quadrati che poi devi riutilizzare per la scacchiera
from ncurses.
from ncurses.
non ce la posso fare
riguardati draw_init() a mente fresca
from ncurses.
from ncurses.
e se non riesce?
from ncurses.
from ncurses.
il problema non è exit
from ncurses.
from ncurses.
endwin non lo vedi?
from ncurses.
from ncurses.
ci stanno i fantasmi?
from ncurses.
from ncurses.
ma io lo metto dopo l'init
from ncurses.
from ncurses.
vabbé aggiusta e andiamo avanti
from ncurses.
from ncurses.
falso
from ncurses.
mi arrendo
from ncurses.
from ncurses.
from ncurses.
vatti a vedere i programmi di esempio
from ncurses.
hai dimenticato di rimettere endwin()
from ncurses.
Related Issues (15)
- ncurses HOT 8
- Figure
- Angoli
- attributi HOT 5
- scacchiera HOT 3
- input HOT 10
- guess HOT 4
- random_nc HOT 1
- input HOT 26
- guess_nc HOT 12
- mad editor HOT 28
- quadrati colorati HOT 10
- menu HOT 4
- led HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ncurses.