Skip to main content

Database and Libraries

  • Chapter
  • First Online:
Book cover Developing Games on the Raspberry Pi
  • 1228 Accesses

Abstract

There are lots of ways to store data. In the Blackjack game, you stored the building blocks for a deck of playing cards in two tables—one for suits and one for values. That’s a good method for small data sets that don’t change from game to game, but it won’t work if, for instance, it was possible for a player to level up and earn the ability to play with Jokers in the deck, because the tables defining the deck is hard-coded into the application.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 37.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Seth Kenlon

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Kenlon, S. (2019). Database and Libraries. In: Developing Games on the Raspberry Pi. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4170-7_5

Download citation

Publish with us

Policies and ethics