GithubHelp home page GithubHelp logo

Quadrati about ncurses HOT 33 CLOSED

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024
Quadrati

from ncurses.

Comments (33)

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

fare una funzione (magari in un modulo) pareva brutto?

from ncurses.

TeoColuccio avatar TeoColuccio commented on August 17, 2024

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024
  1. si scrive draw con la 'a'
  2. perché metti il controllo sui colori in init() e start_color in square()

from ncurses.

TeoColuccio avatar TeoColuccio commented on August 17, 2024

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024
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.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

quindi ora viene chiamata prima start_color() e poi viene fatto il controllo se ci sono i colori

from ncurses.

TeoColuccio avatar TeoColuccio commented on August 17, 2024

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

non ci siamo

from ncurses.

TeoColuccio avatar TeoColuccio commented on August 17, 2024

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

non ha senso che init_scr() non sia la prima funzione chiamata

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

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.

TeoColuccio avatar TeoColuccio commented on August 17, 2024

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

non ce la posso fare
riguardati draw_init() a mente fresca

from ncurses.

TeoColuccio avatar TeoColuccio commented on August 17, 2024

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

e se non riesce?

from ncurses.

TeoColuccio avatar TeoColuccio commented on August 17, 2024

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

il problema non è exit

from ncurses.

TeoColuccio avatar TeoColuccio commented on August 17, 2024

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

endwin non lo vedi?

from ncurses.

TeoColuccio avatar TeoColuccio commented on August 17, 2024

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

ci stanno i fantasmi?

from ncurses.

TeoColuccio avatar TeoColuccio commented on August 17, 2024

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

ma io lo metto dopo l'init

from ncurses.

TeoColuccio avatar TeoColuccio commented on August 17, 2024

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

vabbé aggiusta e andiamo avanti

from ncurses.

TeoColuccio avatar TeoColuccio commented on August 17, 2024

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

falso

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

mi arrendo

from ncurses.

TeoColuccio avatar TeoColuccio commented on August 17, 2024

from ncurses.

TeoColuccio avatar TeoColuccio commented on August 17, 2024

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

vatti a vedere i programmi di esempio

from ncurses.

FabioZTessitore avatar FabioZTessitore commented on August 17, 2024

hai dimenticato di rimettere endwin()

from ncurses.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.